<template>
	
	<view>
		
		<view class="product-con">
			
<!-- 			<scroll-view :scroll-top="scrollTop" scroll-y="true" scroll-with-animation="true"
											:style="'height:' + height + 'px;'" @scroll="scroll"> -->
					
				<view id="sputopinfo">
					
					<productConSwiper :imgUrls="storeInfo.slider_image" :videoline="storeInfo.video_link" @videoPause="videoPause"></productConSwiper>
					
					<view class="wrapper on spu-info">
						<view class="spu-price-wrapper">
							<image class="spu-price-bg" src="../../static/images/spu-price.png"></image>
						
							<view class="top-price">
								<text>¥</text>
								<text class="num" v-text="storeInfo.day_price || 0"></text>
								<text>/天</text>
							</view>
							
						</view>
						
						<view class="spu-desc-info">
							
							<view class="zhima-credit">
								<view class="content">
									<image class="zhima-icon" src="../../static/images/zhima-icon.png"></image>
									<text class="left-title">芝麻免押 ·</text><text>600分以上有机会免押金</text>
								</view>
							</view>
							
							<view class="share acea-row row-between row-bottom">
								<view class="money price-color">
									<text>¥</text>
									<text class="num" v-text="storeInfo.day_price || 0"></text>
									<text>/天</text>
								</view>
							</view>
							<view class="introduce acea-row row-between">
								<view  :class="(promotions_type ==1 || activityBg)?'infor':''" v-if="diyProduct.is_name">
									<span v-if="storeInfo.dis_old == 100" class="labelNew">全新</span>
									<span v-else class="labelNew">{{storeInfo.dis_old}}新</span>
									<span>{{storeInfo.store_name}}</span>
								</view>
							</view>
							<view class="spu-label">
								<span class="label-item" v-for="(item, index) in storeInfo.store_label">{{item.label_name}}</span>
							</view>
							
							<view class="rent-wrapper acea-row row-between">
								<view class="left">
									<view class="rent-label">
										<image class="zhima-icon" src="../../static/images/zhima-icon.png"></image>
										信用免押
									</view>
									<view class="spu-rent">
										商品押金<text class="price">¥0</text>
									</view>
								</view>
								
								<view class="right">
									<view class="right-lable uu-label">顺丰包邮</view>
									<!-- <view class="right-lable uu-label">租完归还</view> -->
								</view>
							</view>
						</view>
					</view>				
					
					<!-- <view class="spu-desc">原装未激活 订单审核快 越早买断越划算</view> -->
					
					<view class="anxinzu-wrapper">
						<image class="anxinzu-img" src="./static/anxinzu.png"></image>
							
						<view class="list">
							<view class="item">
								<view class="img">
									<image src="../../static/images/icon-axz01.png"></image>
								</view>
								<view class="content">100%正品</view>
							</view>
							<view class="item">
								<view class="img">
									<image src="../../static/images/icon-axz02.png"></image>
								</view>
								<view class="content">假一赔三</view>
							</view>
							<view class="item">
								<view class="img">
									<image src="../../static/images/icon-axz03.png"></image>
								</view>
								<view class="content">原厂原装</view>
							</view>
							<view class="item">
								<view class="img">
									<image src="../../static/images/icon-axz04.png"></image>
								</view>
								<view class="content">联保保障</view>
							</view>
						</view>
						
						<view class="anxinzu-text">正品保障·原厂原装·拒绝仿冒</view>
						
						<image class="label-icon" src="./static/label_icon.png"></image>
					</view>
					
					<view class="attribute">
						<view  @click="selecAttr"
							class="attrInfo">
							<view class="acea-row row-between-wrapper">
								<view style="display: flex; align-items: center; width: 90%;">
									{{ attrTxt }}：
									<view class="atterTxt line1" style="width: 82%;">{{lease_mode_value}};{{ attrValue }};{{total_day_value}}
									</view>
								</view>
								<view class="iconfont icon-jiantou"></view>
							</view>
							<view class="acea-row row-between-wrapper"
								style="margin-top:7px;padding-left:55px;"
								v-if="skuArr.length > 1 && diyProduct.sku_style == 2">
								<view class="flex">
									<image :src="item.image" v-for="(item,index) in skuArr.slice(0,4)"
										:key="index" class="attrImg"></image>
								</view>
								<view class="switchTxt">共{{skuArr.length}}种规格可选</view>
							</view>
						</view>
						<view class="specs acea-row row-between-wrapper" @click="seeSpecs">
							<view class="acea-row row-middle">
								参数：
								<view class="list line1">
									
									<span class="item" v-for="(item,index) in storeInfo.specs"
										:key="index">{{item.name}}</span>
									<!-- <span v-if="storeInfo.specs.length>4">...</span> -->
									
						<!-- 			<span class="item" v-for="(item,index) in storeInfo.specs"
										:key="index" v-if="index<4">{{item.name}}</span>
									<span v-if="storeInfo.specs.length>4">...</span> -->
								</view>
							</view>
							<view class="iconfont icon-jiantou"></view>
						</view>
						
						<view class="specs acea-row row-between-wrapper" v-if="storeInfo.accessory.length > 0"  @click="seeAccessory">
							<view class="acea-row row-middle">
								配件：
								<view class="list line1">
									<span class="item" v-for="(item,index) in storeInfo.accessory"
										:key="index">{{item.gift_name}}*{{item.gift_num}}</span>
								<!-- 	<span class="item" v-for="(item,index) in storeInfo.accessory"
										:key="index" v-if="index<2">{{item.gift_name}}*{{item.gift_num}}</span>
									<span v-if="storeInfo.accessory.length>2">...</span> -->
								</view>
							</view>
							<view class="iconfont icon-jiantou"></view>
						</view>
					</view>
					
				</view>
				<view id="past1" style="margin-top: 20rpx;" >
					<view class="title-selsct-wrapper"  :class="headerShow? 'top-header' : ''">
						<view >
							<view class="title-wrapper">
								<view class="detail-title" :class="selectIndex == 0 ? 'on': ''" @click="selectTab(0)">
									<view class="content"  :class="selectIndex == 0 ? 'on detail-tab-b-b': ''">商品详情</view>
									<!-- <view class="h-line" :class="selectIndex == 0 ? 'on': ''"></view> -->
								</view>
								<view class="detail-title" :class="selectIndex == 1 ? 'on': ''" @click="selectTab(1)">
									<view class="content"  :class="selectIndex == 1 ? 'on detail-tab-b-b': ''">租赁说明</view>
									<!-- <view class="h-line" :class="selectIndex == 1 ? 'on': ''"></view> -->
								</view>
								<view class="detail-title" :class="selectIndex == 2 ? 'on': ''" @click="selectTab(2)"  >
									<view class="content"  :class="selectIndex == 2 ? 'on detail-tab-b-b': ''">常见问题</view>
									<!-- <view class="h-line" :class="selectIndex == 2 ? 'on': ''"></view> -->
								</view>
							</view>
							
							<!-- <view class="spu-detail-select" v-if="selectIndex == 0">
								<view class="item">
									<view class="select-title on">商品介绍</view>
								</view>
								<view class="item">
									<view class="select-title">服务标准</view>
								</view>
								<view class="item">
									<view class="select-title">隐私保障</view>
								</view>
							</view> -->
							
						<!-- 	<view class="spu-detail-select" v-if="selectIndex == 1">
								<view class="item">
									<view class="select-title on">租赁流程</view>
								</view>
								<view class="item">
									<view class="select-title">租赁须知</view>
								</view>
							</view> -->
						</view>
					</view>
				</view>
				
				<view class="product-intro" style="padding-bottom: 10rpx;" >
					
					<view v-if="headerShow" style="height: 98rpx;"></view>
					
					<view>
						<view class="conter" v-if="selectIndex == 0">
							
							<jyf-parser :html="description" ref="article" :tag-style="tagStyle">
							</jyf-parser>
							
							
							<u-divider :dashed="true"></u-divider>
							
							<view>
								<view class="s-item">
									<view class="flow-title">
										<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
										<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
										<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
										<view class="title-text">商品详情-服务标准</view>
									</view>
									<view class="content">
										租赁服务设备及租赁服务的定义</br>
										手机为非监管机，用户自由定义使用，需按期还款。</br>
										租赁服务设备系指商户通过合法渠道采购，并将租赁服务设备转让给您使用(设备所有权归属商户)，同时向您提供相关服务。租赁期间，您在支付相应租金后享有租赁服务设备的使用权，若您未按时支付租金则无法享有租赁服务设备的使用权，平台商户有权停止向您提供租赁服务并停用租赁服务设备。</br>
										在订单交易成功后，您可以享受以下租赁服务内容:</br>
										(1)租赁服务设备使用权;</br>
										(2)顺丰寄出包邮服务;</br>
										(3) 极速发货服务:订单审核通过后约24小时发货(节假日顺延，如遇订单缺货，会提前与您沟通协商);</br>
										(4)随租随还服务:随租随还套餐单在满足随租随还，条件后，您可在当期租期内提前归还设备，无需支付违约金，当期剩余租金不退;</br>
										(5) 租中担保服务:如在租赁期间租赁服务设备损坏在设备损坏后平台判定损坏责任归属前，平台为您提供设备质量担保服务，您无需向商家支付任何费用(设备损坏前已产生的费用除外)</br>
									</view>
								</view>
								<view class="s-item">
									<view class="flow-title">
										<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
										<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
										<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
										<view class="title-text">隐私保障</view>
									</view>
									<view class="content">
										关于您隐私保障服务说明</br>
										关于您隐私保障服务说明我们深知个人信息对您的重要性，我们非常重视您的隐私和个人信息保护。为此，我们通过采取安全技术措施、制定内部管理制度和操作规则、加强人员管理和教育培训等有效措施来保障您在使用平台的产品/服务时的隐私与个人信息安全。平台为保障您的个人信息所采取的部分保护措施如下:</br>
										(一)针对交易信息、用户注册信息等记录在系统的信息</br>
										我们将通过《个人信息保护政策》 (隐私政策)向您说明在您使用平台的产品/服务时，我们会如何收集、存储、保护、使用及对外提供您的个人信息，以及我们为您提供的访问、更新、删除和保护这些信息的方式。您可通过查阅该政策了解相关信息。</br>
										此外，如我们在为您提供服务的过程中需要收集/使用隐私政策中未列明的您的个人信息(例如您的身份证件照片等)，我们将在另行取得您的同意后才会收集/使用。如您不同意向我们提供此类信息，可直接拒绝，您拒绝提供此类信息并不会影响您正常使用小程序、APP的基本功能。</br>
										(二)针对租赁服务设备中的信息</br>
										(1)租赁结束后归还的设备:如租赁设备归还地址为平台所在地，我们将在收到设备后在录音录像环境中对设备中的数据进行全面清除并恢复至出厂状态后，才会进行下一轮租赁;如设备归还地址为商家所在地，我们个督促并要求商家在录音录像环境中对设备中的数据进行关于您隐私保障服务说明</br>
										关于您隐私保障服务说明我们深知个人信息对您的重要性，我们非常重视您的隐私和个人信息保护。为此，我们通过采取安全技术措施、制定内部管理制度和操作规则、加强人员管理和教育培训等有效措施来保障您在使用平台的产品/服务时的隐私与个人信息安全。平台为保障您的个人信息所采取的部分保护措施如下:</br>
										(一)针对交易信息、用户注册信息等记录在系统的信息</br>
										我们将通过《个人信息保护政策》 (隐私政策)向您说明在您使用平台的产品/服务时，我们会如何收集、存储、保护、使用及对外提供您的个人信息，以及我们为您提供的访问、更新、删除和保护这些信息的方式。您可通过查阅该政策了解相关信息。</br>
										此外，如我们在为您提供服务的过程中需要收集/使用隐私政策中未列明的您的个人信息(例如您的身份证件照片等)，我们将在另行取得您的同意后才会收集/使用。如您不同意向我们提供此类信息，可直接拒绝，您拒绝提供此类信息并不会影响您正常使用小程序、APP的基本功能。</br>
										(二)针对租赁服务设备中的信息</br>
										(1)租赁结束后归还的设备:如租赁设备归还地址为平台所在地，我们将在收到设备后在录音录像环境中对设备中的数据进行全面清除并恢复至出厂状态后，才会进行下一轮租赁;如设备归还地址为商家所在地，我们个督促并要求商家在录音录像环境中对设备中的数据进行</br>
									</view>
								</view>
								
								<view class="s-item">
									<view class="flow-title">
										<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
										<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
										<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
										<view class="title-text">关于拒签</view>
									</view>
									<view class="content">起租日前到货的订单用户签收时，发现商品存在质量问题、商品与订单规格描述或商家约定的描述不一致可拒签快递，可联系商家客服申请换货或申请退款，并由商家承担往返运费；因用户自身原因拒签的，用户需自行承担往返运费；起租日后到货的订单用户签收时，用户可以拒签快递，由商家承担往返运费；
									</view>
									<view class="content"><text style="font-weight: bold;">温馨提醒：</text>若商品出现以下情形不支持拒签，用户需与商家协商处理：（1）全新商品被拆封或激活或其他行为影响商品二次出售的；（2）定制产品。</view>
								</view>
							</view>
							
						</view>
						
						
						<view v-if="selectIndex == 1">
							<view class="flow-path uu-zjlc-top">
								<view class="path-block">
									<view class="flow-title">
										<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
										<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
										<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
										<view class="title-text">租赁流程</view>
									</view>
								
									<view class="flow-chart">
										<view class="item">
											<view class="pic">
												<image v-if="appType == 1" src="../../static/images/ic-flow11.png"></image>
												<image v-else-if="appType == 2" src="../../static/images/ic-flow111.png"></image>
												<image v-else src="../../static/images/ic-flow1.png"></image>
											</view>
											<view class="text">选择商品 确认规格</view>
										</view>
										<view class="dots">
											<view class="dot" v-for="item in 4"></view>
										</view>
										<view class="item">
											<view class="pic">
												<image v-if="appType == 1" src="../../static/images/ic-flow22.png"></image>
												<image v-else-if="appType == 2" src="../../static/images/ic-flow222.png"></image>
												<image v-else src="../../static/images/ic-flow2.png"></image>
											</view>
											<view class="text">减免押金 订单审核</view>
										</view>
										<view class="dots">
											<view class="dot" v-for="item in 4"></view>
										</view>
										<view class="item">
											<view class="pic">
												<image v-if="appType == 1" src="../../static/images/ic-flow33.png"></image>
												<image v-else-if="appType == 2" src="../../static/images/ic-flow333.png"></image>
												<image v-else src="../../static/images/ic-flow3.png"></image>
											</view>
											<view class="text">商家发货 用户收货</view>
										</view>
										<view class="dots">
											<view class="dot" v-for="item in 4"></view>
										</view>
										<view class="item">
											<view class="pic">
												<image v-if="appType == 1" src="../../static/images/ic-flow44.png"></image>
												<image v-else-if="appType == 2" src="../../static/images/ic-flow444.png"></image>
												<image v-else src="../../static/images/ic-flow4.png"></image>
											</view>
											<view class="text">租赁中 按期归还</view>
										</view>
									</view>
									
									<view class="section-box">
										<view class="count-header">
											<image src="../../static/images/icon/count.png" class="count-pic"></image>
											<view class="count-text">租期计算</view>
										</view>
										<view class="s-item" style="margin-top: 0;">
											<view class="content">租期是从用户签收日次日起计算（正常是快递到货次日，由于用户原因延误签收时间，延误时间计入租期内）。例如：用户您选择的租期是 3号到9号（计费时间为7天），但4号快递才送到货给您签收，则从5号开始起算租期，到期后可对应顺延2天在归还寄回（寄回快递费用户自费），寄回时间以快递显示的收揽时间为准。 </view>
										</view>	
										
										<image v-if="appType == 0" src="https://wap.yqjy8.vip/uploads/attach/2023/05/20230520/136da723308e57e2acec2938ed03021c.png" class="date-pic"></image>
										<image v-else-if="appType == 1" src="https://oss.jingyinmao.cn/attach/2023/07/f2309202307071359571178.png" class="date-pic"></image>
										<image v-else-if="appType == 2" src="https://oss.jingyinmao.cn/attach/2023/07/ca316202307261659098599.png" class="date-pic"></image>
									</view>
								
								</view>
								
								
								<view class="box2">
									
									<u-divider :dashed="true"></u-divider>
									
									<view class="s-item">
										<view class="flow-title">
											<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
											<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
											<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
											<view class="title-text">关于审核</view>
										</view>
										<view class="content">下单成功后请您耐心等待，48小时内通过电话、短信、服务提醒等反馈审核结果。如果审核不通过，订单将自动关闭，具体审核结果会及时通知您，请保持手机畅通。</view>
									</view>
									<view class="s-item">
										<view class="flow-title">
											<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
											<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
											<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
											<view class="title-text">关于交租</view>
										</view>
										<view class="content">短租订单（90天或以下）：商家发货前会根据审核结果对用户的订单进行租金扣款（原则上支持商家一次性扣全款），若商家依据风险控制系统判定用户的风险系数较高时，商家可能需要用户预付多期租金，如用户不同意，商家可直接取消订单，并原路退还用户支付的租金（如有）。</view>
										<view class="content">长租订单（90天以上）：商家发货前会根据审核结果对用户的订单进行租金扣款（首期租金扣款），租期内按月扣去每期租金；若商家依据风险控制系统判定用户的风险系数较高时，商家可能需要用户预付多期租金，如用户不同意，商家可直接取消订单，并原路退还用户支付的租金（如有）。</view>
									</view>
									
									<view class="s-item">
										<view class="flow-title">
											<image v-if="appType == 1" src="../../static/images/icon/sanjiaoxing1.png" class="above-pic"></image>
											<image v-else-if="appType == 2" src="../../static/images/icon/sanjiaoxing2.png" class="above-pic"></image>
											<image v-else src="../../static/images/icon/sanjiaoxing.png" class="above-pic"></image>
											<view class="title-text">关于拒签</view>
										</view>
										<view class="content">起租日前到货的订单用户签收时，发现商品存在质量问题、商品与订单规格描述或商家约定的描述不一致可拒签快递，可联系商家客服申请换货或申请退款，并由商家承担往返运费；因用户自身原因拒签的，用户需自行承担往返运费；起租日后到货的订单用户签收时，用户可以拒签快递，由商家承担往返运费；
										</view>
										<view class="content"><text style="font-weight: bold;">温馨提醒：</text>若商品出现以下情形不支持拒签，用户需与商家协商处理：（1）全新商品被拆封或激活或其他行为影响商品二次出售的；（2）定制产品。</view>
									</view>
								</view>
							</view>
						</view>
						
						<view v-if="selectIndex == 2">
							<view class="problem">
								<image v-if="appType == 0" class="top-problem" src="https://oss.jingyinmao.cn/attach/2023/07/4eb7a202307281819554624.png"></image>
								<image v-else-if="appType == 1" class="top-problem" src="https://oss.jingyinmao.cn/attach/2023/07/3b9fe202307281820124711.png"></image>
								<image v-else-if="appType == 2" class="top-problem" src="https://oss.jingyinmao.cn/attach/2023/07/1f2d1202307281820284260.png"></image>
								<view class="problem-list">
									<view class="problem-list-wrapper">
										<view class="problem-item">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">关于下单后商品发货时效的问题？</view>
											</view>
											<view class="problem-content">
												下单后商品发货时效标准如下:</br>
												(1) 若用户的订单是租赁时长的订单，商家将在用户成功交付首期租金后的48小时内发货;若用户成功交付首期租金后，商家无法提供租赁商品(如缺货、补货)，商家将在24小时内联系用户协商修改租期或延迟发货;</br>
												(2) 若用户的订单是自选租赁时长的订单 (含预选租期类型订单)，用户成功交付首期租金后，商家将在订单起租日前48小时左右发货，以保证商品在订单起租日前寄到用户收货地址处;若用户成功交付首期租金后，商家无法在订单起租日前提供租赁商品 (如缺货、补货)，则商家将在起租日前24小时内联系用户协商修改租期或延迟发货;</br>
												(3) 若用户的订单为 [自行到店取货]、[送货上门，类型订单，用户可自行和商家约定取货或送货时间。
											</view>
										</view>
										
										<view class="problem-item" v-if="isExpand">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">关于物流及运费问题？</view>
											</view>
											<view class="problem-content">
												Q1关于商品寄出运费的问题</br>
												商品寄出均为顺丰包邮。客户免运费。</br>
												Q2关于商品归还运费的问题</br>
												待收货订单:商品归还运费处理标准如下</br>
												(1) 若商品本身没有问题，且为自选租赁时长的单(含预选租期类型订单) 起租日前送到货或固定租赁时长订单正常送到货，但因用户自身原因拒收，默认由用户承担归还运费;</br>
												(2) 若商品本身有问题 (如质量问题) 或自选租赁时长的订单(含预选租期类型订单) 起租日后送到货，用户可以拒收，默认由商家承担归还运费。
											</view>
										</view>
										
										<view class="problem-item" v-if="isExpand">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">订单到期后商品如何归还？</view>
											</view>
											<view class="problem-content">
												平台订单到期，商品如为到期赠送，无需归还。</br>
												如选择是到期归还，请在订单详情，查看归还地址。选择收派员上门取件并在自行寄出快递后填写快递单号，实际完成归还。</br>
												温馨提示:建议用户在寄出或送还商品前，录制清晰的装箱视频，降低物流、验收损坏风险
											</view>
										</view>
										
										<view class="problem-item" v-if="isExpand">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">可以提前还款吗?需要赔付违约金吗?</view>
											</view>
											<view class="problem-content">
												可以提前还款，订单交易快照未明确约定【随租随还】的订单，用户提前归无需赔付违约金。如没有解决您的问题? 联系客服。
											</view>
										</view>
										
										
										<view class="problem-item" v-if="isExpand">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">关于租期计算问题</view>
											</view>
											<view class="problem-content">
												租期是从用户签收日次日起计算 (正常是按快递到货次日，由于用户原因延误签收时间，延误时间计入租期内)。例如: 用户您选择的租期是3号到9号(计费时间为 7天)，但4号快递才送到货给您签收，则从5号起算租期，到期后可相应顺延2天再归还寄回(即11号寄回设备)，寄回时间以快递显示的揽收时间为准。
											</view>
										</view>
										
										<view class="problem-item" v-if="isExpand">
											<view class="problem-title">
												<image v-if="appType == 1" class="ic-problem-left" src="../../static/images/ic-problem-left1.png"></image>
												<image v-else class="ic-problem-left" src="../../static/images/ic-problem-left.png"></image>
												<view class="problem-subtitle">怎么开发票？</view>
											</view>
											<view class="problem-content">
												下单时，用户可在[确认订单页，底部的 [备注栏，下正确填写填写开票详细资料和类型。商家发货前会与用户联系，届时用户可咨询商家，订单是否支持开发票、开发票税点由哪方承担、开票的税点是多少等其他发票问题。
											</view>
										</view>
										
										<view class="expand-wrapper" @click="expand">
											<view class="expand-wrapper">
												<view>{{expandTitle}}</view>
												<image v-if="!isExpand" class="ic-expand" src="../../static/images/ic-expand.png"></image>
											</view>
										</view>
										
									</view>
									
								</view>
										
							</view>
						</view>
					</view>	

					<view class="tip-list">
						<view class="tip-title">
							温馨提示
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>点击“免押租”按钮后即默认您已阅读和接受上述产品页面信息，且同意授权平台将您的个人信息用户租赁交易的风险评估。</text>
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>严正声明：直租侠平台一直以来禁止18周岁以下用户下单严正声明：直租侠平台一直以来禁止18周岁以下用户下单</text>
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>为保障您的租赁服务体验，若商家出现缺货、无法发货等情况，平台将自动为您的订单匹配新的商家，订单所属店铺可能发生变化，若您对此介意，请慎拍！感谢您的支持与理解！</text>
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>本商品生成的订单过程将通过区块链存证到司法链，恶意逾期违约将追究法律责任，违约方承担所产生的案件受理费，诉讼保全费、公告费，律师费以及违约金！</text>
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>未经出租人同意，承租人私自转卖租赁物设备，系违法行为，涉嫌诈骗！</text>
						</view>
						<view class="tip-txt">
							<text><text class="point"></text>上述商品详情包含的所有图片仅供参考，具体情况以实物为准。</text>
						</view>
					</view>
					
				</view>
				
				<!-- 优品推荐 -->
				<view v-if="good_list.length">
					
				<!-- 	<view class="title acea-row row-center-wrapper" style="background: transparent;">
						<view class="titleTxt">为您推荐</view>
					</view> -->
					
					
			<!-- 		<view class="head-box">
						<image src="../../../static/images/icon/brand-left.jpg"></image>
						<view class="main-title">为您推荐</view>
						<image src="../../../static/images/icon/brand-right.jpg"></image>
					</view> -->
					
					<view class="recommend-title acea-row row-center-wrapper">
						为您推荐
					</view>
					
					<view class="rec-list waterList">
						
						<waterfallsFlow ref="waterfallsFlow" :list="productList" @wapper-lick="goDetail">
							<view v-for="(item, index) of productList" :key="index" slot="slot{{index}}">
								<view class="waterfalls">
									<view class='name line2'>
										<span class="tit-tag app-label" v-if="item.dis_old == 100">
											全新
										</span>
										<span v-else class="tit-tag app-label">
											{{item.dis_old}}新
										</span>
										{{item.store_name}}	
									</view>
									
								<!-- 	<view class="info-lable-box flex">
										<view 
											class="lable-li li-cor0" 
											v-if="item.StoreProductLabel.length >= 1"
										>
											{{ item.StoreProductLabel[0] }}
										</view>
										<view
											class="lable-li li-cor1" 
											v-if="item.StoreProductLabel.length >= 2"
										>
											{{ item.StoreProductLabel[1] }}
										</view>
									</view> -->
									
									<view class="flex price-box">
										<view class="info-price flex">
											<view class="price-icon">
												¥
											</view>
											{{ item.min_day_price }}
											<view class="price-unit">
												/天
											</view>
										</view>
									</view>
									
									<view class="serve-box flex">
										<view class="serve-li uu-label">
											顺丰包邮
										</view>
									<!-- 	<view class="serve-li uu-label">
											租完归还
										</view> -->
									</view>
									
									
									<!-- <span class="label"
										v-if="item.activity && item.activity.type === '1' && !promotions_type">秒杀</span>
									<span class="label"
										v-if="item.activity && item.activity.type === '2' && !promotions_type">砍价</span>
									<span class="label"
										v-if="item.activity && item.activity.type === '3' && !promotions_type">拼团</span>
									<text class="label" v-if="item.promotions.title">{{item.promotions.title}}</text>
									<view class="vip acea-row row-middle">
										<view class='money font-color'>
											￥<text class='num'>{{item.price.toString().split(".")[0]}}</text>
											<text class='nums'
												v-if="item.price.toString().split('.').length>1">.{{item.price.toString().split(".")[1]}}</text>
										</view>
										<view class='vip-money acea-row row-middle' v-if="item.vip_price && item.vip_price > 0">
											<view>￥{{item.vip_price}}</view>
											<view class="icon on" v-if="item.price_type && item.price_type == 'member'"><text
													class="iconfont icon-huangguan4"></text>SVIP</view>
											<view class="icon" v-if="item.price_type && item.price_type == 'level'"><text
													class="iconfont icon-dengjitubiao"></text>{{item.level_name}}</view>
										</view>
									</view>
									<view class='vip acea-row row-between-wrapper'>
										<view>已售{{item.sales}}{{item.unit_name || '件'}}</view>
										<view>评分 {{item.star}}</view>
									</view> -->
								</view>
							</view>
						</waterfallsFlow>
						
						
						<!-- <waterfallsFlow ref="waterfallsFlow" :list="productList" @wapper-lick="godDetail">
							<template v-slot:default="item"> -->
								<!-- <view class="waterfalls" v-for="(item, index) in productList" @click="goDetail(item)">
									<view class="item-wrapper">
										<view class="img-wrapper">
											<image class="img" :src="item.image"></image>
										</view>
										<view class='name line2'>
											<span class="re-label" v-if="item.dis_old == 100">全新</span>
											<span class="re-label" v-else>{{item.dis_old}}新</span>
											<span>{{item.store_name}}</span>
										</view> -->
					<!-- 					<span class="label">精品推荐</span>
										<span class="label">官方补贴</span> -->
										<!-- <span class="label"
											v-if="item.activity && item.activity.type === '1' && !promotions_type">秒杀</span>
										<span class="label"
											v-if="item.activity && item.activity.type === '2' && !promotions_type">砍价</span>
										<span class="label"
											v-if="item.activity && item.activity.type === '3' && !promotions_type">拼团</span> -->
										<!-- <text class="label" v-if="item.promotions.title">{{item.promotions.title}}</text> -->
										<!-- <view class="vip acea-row row-middle"> -->
										<!-- 	<view class='money'>
												￥<text class='num'>{{item.price.toString().split(".")[0]}}</text>
												<text class='nums'
													v-if="item.price.toString().split('.').length>1">.{{item.price.toString().split(".")[1]}}</text>/天
											</view> -->
											<!-- <view class='money'>
												<text style="font-weight: bold;">￥</text><text class='num' style="font-weight: bold;">{{item.stageMinDayPrice}}</text></text>/天
											</view> -->
											<!-- <view class='vip-money acea-row row-middle' v-if="item.vip_price && item.vip_price > 0">
												<view>￥{{item.vip_price}}</view>
												<view class="icon on" v-if="item.price_type && item.price_type == 'member'"><text
														class="iconfont icon-huangguan4"></text>SVIP</view>
												<view class="icon" v-if="item.price_type && item.price_type == 'level'"><text
														class="iconfont icon-v"></text>{{item.level_name}}</view>
											</view> -->
									<!-- 	</view>
										<span class="label">顺丰包邮</span>
										<span class="label">租完归还</span>
									</view> -->
									
								<!-- </view> -->
						<!-- 	</template>
						</waterfallsFlow> -->
						
					</view>
					
				</view>	
				
			
				
				<view class="bottom-h"></view>
			<!-- </scroll-view> -->
			
			<view class="bottom-footer">
				<navigator hover-class="none" class="bottom-item" open-type="switchTab"
					url="/pages/index/index">
					<image class="bottom-img" src="./static/home.png"></image>
					<view class="p_center">首页</view>
				</navigator>
				
				<view class="bottom-item" @click="callPhone">
					<image class="bottom-img" src="./static/chat.png" ></image>
					<view class="p_center">客服</view>
				</view>
				
				<view class="bnt">
					<!-- <button v-if="!isLogin" class="bnts app-btn-bg" @click="goBuy">免押租</button> -->
					
					<!-- <view v-else> -->
						<button v-if="attr.productSelect.stock <= 0 && attr.cartAttr" class='bnts bg-color-hui'>已售罄</button>
						<button v-else-if="attr.cartAttr && !isLogin" class="bnts app-btn-bg" @click="getIsLogin">免押租</button>
						<button v-else-if="attr.cartAttr && isLogin && userPhone" class="bnts app-btn-bg" @click="goCat(true)">免押租</button>
						<button
						    v-else-if="attr.cartAttr && isLogin"
							open-type="getAuthorize"
							scope="phoneNumber"
							@getAuthorize="getAuthorize"
							@error="errorPhoneNumber"
							class='bnts app-btn-bg'
							>免押租</button>
						<button v-else class="bnts app-btn-bg" @click="goShow">免押租</button>
						<!-- <button
						    v-else
							open-type="getAuthorize"
							scope="phoneNumber"
							@getAuthorize="getAuthorize"
							@error="errorPhoneNumber"
							class='bnts app-btn-bg'
							>免押租</button> -->
					<!-- </view> -->
				
				</view>
			</view>
			
		</view>
		
		<view v-if="loaded">
			<!-- 属性组件 -->
			<productWindow @showLeased="showLeased" :day_price="day_price" :attr="attr" :isShow="1" :iSplus="1" :storeInfo="storeInfo" @myevent="onMyEvent" @ChangeAttr="ChangeAttr"
				@ChangeCartNum="ChangeCartNum" @attrVal="attrVal" @iptCartNum="iptCartNum" @getImg="showImg" id="product-window"
				:is_vip="is_vip" :productValue="productValue" :stage_day="stage_day_temp" :lease_mode="lease_mode" :total_day="total_day" 
				:lease_mode_value="lease_mode_value" :total_day_value="total_day_value"></productWindow>
		</view>
		
	
		<specs :specsInfo="specsInfo" @myevent="mySpecs"></specs>
		<accessory :accessoryInfo="accessoryInfo" @myevent="myAccessory"></accessory>
		
		<leased :specsInfo="leasedInfo" @myevent="myLeasedInfo"></leased>
		<authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize>
	
	</view>
</template>

<script>
	let sysHeight = uni.getSystemInfoSync().statusBarHeight;
	// let menuButton = uni.getMenuButtonBoundingClientRect();获取小程序右上角胶囊信息；
	import zbCode from '@/components/zb-code/zb-code.vue'
	import waterfallsFlow from "@/components/maramlee-waterfalls-flow/maramlee-waterfalls-flow.vue";

	import {
		getProductDetail,
		getProductCtivity,
		getProductRecommend,
		getProductCode,
		collectAdd,
		collectDel,
		postCartAdd,
		newcomerDetail,
		diyProduct,
		productLease,
		getDayPrice
	} from '@/api/store.js';
	import {
		getUserInfo,
		userShare,
		getUserTel,
	} from '@/api/user.js';
	import {
		getCoupons
	} from '@/api/api.js';
	import {
		getCartCounts
	} from '@/api/order.js';
	import {
		toLogin
	} from '@/libs/login.js';
	import {
		mapGetters
	} from 'vuex';
	import {
		imageBase64
	} from '@/api/public';
	import countDown from '@/components/countDown';
	import productConSwiper from '@/components/productConSwiper';
	import couponListWindow from '@/components/couponListWindow';
	import productWindow from '@/components/productWindow';
	import ensure from './components/ensure/index.vue';
	import specs from './components/specs/index.vue';
	import leased from './components/leased/index.vue';
	import accessory from './components/accessory/index.vue';
	import discount from './components/discount/index.vue';
	import userEvaluation from '@/components/userEvaluation';
	import shareRedPackets from './components/shareRedPackets/index.vue';
	import kefuIcon from '@/components/kefuIcon';
	import discountsList from './components/discountsList/index.vue';
	import cusPreviewImg from '@/components/cusPreviewImg';
	import homeList from '@/components/homeList'
	import {
		silenceBindingSpread
	} from '@/utils';
	import ClipboardJS from '@/plugin/clipboard/clipboard.js';
	import {
		TOKENNAME,
		HTTP_REQUEST_URL
	} from '@/config/app.js';
	import {
		Debounce
	} from '@/utils/validate.js'
	let app = getApp();
	import colors from "@/mixins/color";
	export default {
		components: {
			waterfallsFlow,
			zbCode,
			productConSwiper,
			couponListWindow,
			productWindow,
			userEvaluation,
			shareRedPackets,
			kefuIcon,
			discountsList,
			cusPreviewImg,
			ensure,
			specs,
			discount,
			countDown,
			homeList,
			accessory,
			leased
		},
		directives: {
			trigger: {
				inserted(el, binging) {
					el.click();
				}
			}
		},
		// mixins: [colors],
		data() {
			return {
				loaded: false,
				appType: app.globalData.appType,
				disabled: false,
				detailSubIndex: 0,
				flowSubIndex: 0,
				isExpand: false,
				expandTitle: "展开查看更多",
				selectIndex: 0,
				day_price: "",
				productList: [],
				showSkeleton: true, //骨架屏显示隐藏
				isNodes: 0, //控制什么时候开始抓取元素节点,只要数值改变就重新抓取
				//属性是否打开
				coupon: {
					coupon: false,
					type: -1,
					list: [],
					count: []
				},
				attrTxt: '请选择', //属性页面提示
				attrValue: '', //已选属性
				animated: false, //购物车动画
				id: 0, //商品id
				replyCount: 0, //总评论数量
				reply: [], //评论列表
				storeInfo: {
					brand_name: ''
				}, //商品详情
				productValue: {}, //系统属性
				couponList: [], //优惠券
				cart_num: 1, //购买数量
				isAuto: false, //没有授权的不会自动授权
				isShowAuth: false, //是否隐藏授权
				isOpen: false, //是否打开属性组件
				actionSheetHidden: true,
				posterImageStatus: false,
				storeImage: '', //海报产品图
				PromotionCode: '', //二维码图片
				canvasStatus: false, //海报绘图标签
				posterImage: '', //海报路径
				posterbackgd: '/static/images/posterbackgd.png',
				sharePacket: {
					isState: true //默认不显示
				}, //分销商详细
				uid: 0, //用户uid
				circular: false,
				autoplay: false,
				interval: 3000,
				duration: 500,
				clientHeight: '',
				good_list: [],
				replyChance: 0,
				CartCount: 0,
				isDown: true,
				storeSelfMention: true,
				posters: false,
				weixinStatus: false,
				ensureInfo: {
					show: false,
					ensure: [],
					ensureTitle: ''
				},
				specsInfo: {
					show: false,
					specs: []
				},
				leasedInfo: {
					show: false,
					leased: [],
					residue_stage: '',
					first_stage_price: '',
					buyout_price: ''
				},
				accessoryInfo: {
					show: false,
					accessory: []
				},
				discountInfo: {
					show: false,
					discount: []
				},
				attr: {
					cartAttr: false,
					productAttr: [],
					productSelect: {}
				},
				limitInfo: {
					discount_price: 0,
					price: 0,
					discount: 1,
					datatime: 0
				},
				promotions_type: 0,
				description: '',
				navActive: 0,
				H5ShareBox: false, //公众号分享图片
				activity: [],
				navH: '',
				navList: [],
				opacity: 0,
				scrollY: 0,
				topArr: [],
				height: 0,
				heightArr: [],
				lock: false,
				scrollTop: 0,
				old: {
					scrollTop: 0
				},
				tagStyle: {
					img: 'width:100%;display:block;',
					table: 'width:100%',
					video: 'width:100%'
				},
				returnShow: true, //判断顶部返回是否出现
				diff: '',
				is_money_level: 1,
				is_vip: 0, //是否是会员
				navbarRight: 0,
				spuInfoTop: 20,
				homeTop: 20,
				routineContact: 0,
				discountsData: [], //套餐数据
				siteName: '', //商城名称
				themeColor: '',
				fontColor: '',
				showAnimate: true,
				skuArr: [],
				//二维码参数
				codeShow: false,
				cid: '1',
				codeVal: "", // 要生成的二维码值
				size: 200, // 二维码大小
				unit: 'upx', // 单位
				background: '#FFF', // 背景色
				foreground: '#000', // 前景色
				pdground: '#000', // 角标色
				codeIcon: '', // 二维码图标
				iconsize: 40, // 二维码图标大小
				lv: 3, // 二维码容错级别 ， 一般不用设置，默认就行
				onval: true, // val值变化时自动重新生成二维码
				loadMake: true, // 组件加载完成后自动生成二维码
				base64Show: 0,
				shareQrcode: 0,
				followCode: '',
				selectSku: {},
				currentPage: false,
				sysHeight: sysHeight,
				isShow: 0,
				imgHost: HTTP_REQUEST_URL,
				fromType: 0, //判断是否回退分类二和三刷新
				cartNum: 0,
				fromPage: '', //判断是否为新人专享商品详情
				diyProduct: {
					price_type:[]
				},
				activityBg:'',
				posterTitle:'',
				lease_mode: '',
				total_day: '',
				stage_day: '',
				stage_day_temp: '',
				lease_mode_temp: '',
				total_day_temp: '',
				lease_mode_value: '',
				total_day_value: '',
				headerShow: false,
				tabTowTwoTop: 0,
				filterClickTime: 0,
				userPhone: ''
			};
		},
		computed: mapGetters(['isLogin']),
		watch: {
			isLogin: {
				handler: function(newV, oldV) {
					if (newV == true) {
						this.getCouponList();
						this.getCartCount();
						// this.downloadFilePromotionCode();
					}
				},
				deep: true
			},
			storeInfo: {
				handler: function() {
					this.$nextTick(() => {});
				},
				immediate: true
			}
		},

		onLoad(options) {
			let diyProduct = null;
			try {
				diyProduct = JSON.parse(uni.getStorageSync('diyProduct'))
			} catch (e) {

			}
			if (diyProduct) {
				this.diyProduct = diyProduct;
			} else {
				this.getdiyProduct()
			}
			let that = this;
			var pages = getCurrentPages();
			that.returnShow = pages.length === 1 ? false : true;
			// #ifdef MP
			that.navH = app.globalData.navHeight;
			// #endif
			// #ifndef MP
			that.navH = 96;
			// #endif
			that.id = options.id;
			that.isShow = options.isShow;
			that.promotions_type = options.promotions_type || 0;
			that.fromType = options.fromType;
			that.fromPage = options.fromPage;
			uni.getSystemInfo({
				success: function(res) {
					that.height = res.windowHeight;
				}
			});
			//扫码携带参数处理
			// #ifdef MP
			if (options.scene) {
				let value = that.$util.getUrlParams(decodeURIComponent(options.scene));
				if (value.id) options.id = value.id;
				//记录推广人uid
				if (value.spid) app.globalData.spid = value.spid;
			}
			if (!options.id) {
				this.showSkeleton = false;
				return that.$util.Tips({
					title: '缺少参数无法查看商品'
				}, {
					tab: 3,
					url: 1
				});
			} else {
				that.id = options.id;
			}
			if (that.isLogin && options.id) {
				that.downloadFilePromotionCode();
			}
			// #endif
			//记录推广人uid
			if (options.spid) app.globalData.spid = options.spid;
			that.getGoodsDetails();
			// that.getCouponList(0);
			// #ifdef H5
			that.isLogin && silenceBindingSpread();
			// #endif
			// this.colorData();
			let color = [{
					themeColor: '#1DB0FC',
					fontColor: '#FD502F'
				},
				{
					themeColor: '#42CA4D',
					fontColor: '#FF7600'
				},
				{
					themeColor: '#e93323',
					fontColor: '#e93323'
				},
				{
					themeColor: '#FF448F',
					fontColor: '#FF448F'
				},
				{
					themeColor: '#FE5C2D',
					fontColor: '#FE5C2D'
				},
				{   themeColor:'#E0A558',
				    fontColor:'#DA8C18',
				}
			];
			setTimeout(() => {
				switch (this.colorNum) {
					case 1:
						this.themeColor = color[0].themeColor;
						this.fontColor = color[0].fontColor;
						break;
					case 2:
						this.themeColor = color[1].themeColor;
						this.fontColor = color[1].fontColor;
						break;
					case 3:
						this.themeColor = color[2].themeColor;
						this.fontColor = color[2].fontColor;
						break;
					case 4:
						this.themeColor = color[3].themeColor;
						this.fontColor = color[3].fontColor;
						break;
					case 5:
						this.themeColor = color[4].themeColor;
						this.fontColor = color[4].fontColor;
						break;
					case 6:
						this.themeColor = color[5].themeColor;
						this.fontColor = color[5].fontColor;
						break;
					default:
						this.themeColor = color[2].themeColor;
						this.fontColor = color[2].fontColor;
						break
				}
			}, 1)
		},
		onReady: function() {
			this.isNodes++;
			// #ifdef H5
			this.codeVal = window.location.origin + '/pages/goods_details/index?id=' + this.id +
				'&spid=' + this.$store.state.app.uid
			// #endif	
			// #ifdef APP-PLUS
			this.codeVal = HTTP_REQUEST_URL + '/pages/goods_details/index?id=' + this.id +
				'&spid=' + this.$store.state.app.uid
			// #endif	
			// this.$nextTick(function() {
			// 	// #ifdef MP
			// 	const menuButton = uni.getMenuButtonBoundingClientRect();
				// const query = uni.createSelectorQuery();
				// query
				// 	.select('#home')
				// 	.boundingClientRect(data => {
				// 		console.log(data)
				// 		console.log('=====================================')
				// 		this.homeTop = menuButton.top * 2 + menuButton.height - data.height;
				// 	})
				// 	.exec();
			// 	// wx.showShareMenu({
			// 	// 	withShareTicket:true,
			// 	// 	//设置下方的Menus菜单，才能够让发送给朋友与分享到朋友圈两个按钮可以点击
			// 	// 	menus:["shareAppMessage","shareTimeline"]
			// 	// })
			// 	// #endif
			// 	// #ifdef H5
			// 	const clipboard = new ClipboardJS('.copy-data');
			// 	clipboard.on('success', () => {
			// 		this.$util.Tips({
			// 			title: '复制成功'
			// 		});
			// 	});
			// 	// #endif
			// });
			
			
			
		},
		onShow() {
			uni.removeStorageSync('form_type_cart');
		},
		/**
		 * 用户点击右上角分享
		 */
		// #ifdef MP
		onShareAppMessage: function() {
			let that = this;
			that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
			userShare();
			return {
				title: that.storeInfo.store_name || '',
				imageUrl: that.storeInfo.image || '',
				path: '/pages/goods_details/index?id=' + that.id + '&spid=' + that.uid
			};
		},
		onShareTimeline() {
			let that = this;
			that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
			userShare();
			return {
				title: that.storeInfo.store_name || '',
				imageUrl: that.storeInfo.image || '',
				path: '/pages/goods_details/index?id=' + that.id + '&spid=' + that.uid
			};
		},
		// #endif
		methods: {
			
			showLeased() {
				
				let that = this,
					productSelect = that.productValue[this.attrValue];
				
				let q = {
					product_id: that.id,
					product_attr_unique: that.attr.productSelect !== undefined ? that.attr.productSelect.unique : '',
					stage_day: that.storeInfo.stage_day,
					total_day: that.total_day,
					lease_mode: that.lease_mode
				};
				
				productLease(q).then(res => {
					this.leasedInfo.leased = res.data.list;
					this.leasedInfo.residue_stage = res.data.residue_stage
					this.leasedInfo.first_stage_price = res.data.first_stage_price
					this.leasedInfo.buyout_price = res.data.buyout_price
					this.leasedInfo.show = true;
				})

			},
			
			callPhone(){
				
				let phone = ''
				if (this.appType == 1) {
					phone = '19012833586'
				} else {
					phone = '15822719988'
				}
				
				uni.makePhoneCall({
					phoneNumber: phone,
				});
			},
			onPageScroll(res) {
				var that = this,
					scrollY = res.scrollTop;
				if (scrollY < this.spuInfoTop) {
					
					if (this.headerShow) {
						this.headerShow = false
					}
					
					
				} else {
					
					if (!this.headerShow) {
						this.headerShow = true
					}
				}
			},
			
			selectTab(index) {
				this.selectIndex = index
				if (index == 0) {
					uni.pageScrollTo({
						scrollTop: this.spuInfoTop,
						duration: 0
					})
					
				} else if (index == 1) {
					
					uni.pageScrollTo({
						scrollTop: this.spuInfoTop,
						duration: 0
					})
					
					// const query = uni.createSelectorQuery();
					// setTimeout(() => {
					// 	this.$nextTick(() => {
					// 		query.select('#past22')
					// 		.boundingClientRect(data => {
					// 			this.tabTowTwoTop = data.top;
					// 		})
					// 		.exec();
					// 	})
					// }, 500);
					
				} else if (index == 2) {
					// this.$set(this, 'scrollTop', this.spuInfoTop - 2);
					
					uni.pageScrollTo({
						scrollTop: this.spuInfoTop,
						duration: 0
					})
				}
				
			},
			expand() {
				if (this.isExpand) {
					this.expandTitle = '展开查看更多'
					this.isExpand = false
				} else {
					this.expandTitle = '收起'
					this.isExpand = true
				}
			},
			errorPhoneNumber(res) {
				console.log(res)
			},
			getAuthorize() {
				
				
				if (!this.isLogin) {
					this.getIsLogin();
					return
				}
				
				// let userPhone = uni.getStorageSync('userPhone')
				// if (userPhone) {
				// 	this.goCat(true);
				// } else {
					my.getPhoneNumber({
						 success: (res) => {
							let asd = JSON.parse(res.response);
							getUserTel(res.response).then((resd) => {
							  if (resd.status == 200) {
								this.$set(this, 'userPhone', resd.data.phone)
								this.goCat(true);
							  }
							})
						 },
						 fail: (err) => {
						   console.log("授权失败", err);
						 }
					})
				// }
				
				
			},
			changeLogin(){
				this.getIsLogin();
			},
			getIsLogin(){
				// #ifndef MP
				toLogin()
				// #endif
				// #ifdef MP
				this.isShowAuth = true;
				// #endif
			},
			// div商品详情
			getdiyProduct() {
				diyProduct().then(res => {
					this.diyProduct = res.data.product_detail;
					uni.setStorageSync('diyProduct', JSON.stringify(res.data.product_detail))
				})
			},
			seeEnsure() {
				this.ensureInfo.show = true;
			},
			seeSpecs() {
				this.specsInfo.show = true;
			},
			seeAccessory() {
				this.accessoryInfo.show = true;
			},
			seeDiscount() {
				this.discountInfo.show = true;
			},
			moreNav() {
				this.currentPage = !this.currentPage
			},
			//点击sku图片打开轮播图
			showImg(index) {
				this.$refs.cusPreviewImg.open(this.selectSku.suk)
			},
			//滑动轮播图选择商品
			changeSwitch(e) {
				let productSelect = this.skuArr[e];
				this.$set(this, 'selectSku', productSelect);
				var skuList = productSelect.suk.split(',');
				skuList.forEach((i, index) => {
					this.$set(this.attr.productAttr[index], 'index', skuList[index]);
				})
				if (productSelect) {
					this.$set(this.attr.productSelect, 'image', productSelect.image);
					this.$set(this.attr.productSelect, 'price', productSelect.price);
					this.$set(this.attr.productSelect, 'stock', productSelect.stock);
					this.$set(this.attr.productSelect, 'unique', productSelect.unique);
					this.$set(this.attr.productSelect, 'cart_num', 1);
					this.$set(this.attr.productSelect, 'vip_price', productSelect.vip_price);
					this.$set(this, 'attrValue', productSelect.suk);
					this.$set(this, 'attrTxt', '已选择');
				}
			},
			qrR(res) {
				// #ifdef H5
				if (!this.$wechat.isWeixin() || this.shareQrcode != '1') {
					this.PromotionCode = res;
					this.followCode = ''
				}
				// #endif
				// #ifdef APP-PLUS
				this.PromotionCode = res;
				// #endif
			},
			boxStatus(data) {
				this.showAnimate = data
			},
			followWX() {
				getProductCode(this.id).then(res => {
					this.followCode = res.data.code
					this.getImageBase64(1);
				}).catch(err => {
					this.$util.Tips({
						title: err
					});
				})
			},
			// 图片预览；
			getpreviewImage: function() {
				if (this.posterImage) {
					let photoList = [];
					photoList.push(this.posterImage)
					uni.previewImage({
						urls: photoList,
						current: this.posterImage
					});
				} else {
					this.$util.Tips({
						title: '您的海报尚未生成'
					});
				}
			},
			videoPause() {
				this.$nextTick(() => {
					that.infoScroll();
				})
			},
			// app分享
			// #ifdef APP-PLUS
			appShare(scene) {
				let that = this
				let routes = getCurrentPages(); // 获取当前打开过的页面路由数组
				let curRoute = routes[routes.length - 1].$page.fullPath // 获取当前页面路由，也就是最后一个打开的页面路由
				uni.share({
					provider: "weixin",
					scene: scene,
					type: 0,
					href: `${HTTP_REQUEST_URL}${curRoute}&spid=${that.uid}`,
					title: that.storeInfo.store_name,
					summary: that.storeInfo.store_info,
					imageUrl: that.storeInfo.small_image,
					success: function(res) {
						// uni.showToast({
						// 	title: '分享成功',
						// 	icon: 'success'
						// })
						// that.posters = false;
					},
					fail: function(err) {
						uni.showToast({
							title: '分享失败',
							icon: 'none',
							duration: 2000
						})
						// that.posters = false;
					}
				});
			},
			// #endif
			closeChange: function() {
				this.$set(this.sharePacket, 'isState', true);
			},
			goActivity: function(e) {
				let item = e;
				if (item.type === '1') {
					uni.navigateTo({
						url: `/pages/activity/goods_seckill_details/index?id=${item.id}&time=${item.time}&status=1`
					});
				} else if (item.type === '2') {
					uni.navigateTo({
						url: `/pages/activity/goods_bargain_details/index?id=${item.id}&spid=${this.uid}`
					});
				} else {
					uni.navigateTo({
						url: `/pages/activity/goods_combination_details/index?id=${item.id}`
					});
				}
			},
			/**
			 * 购物车手动填写
			 *
			 */
			iptCartNum: function(e) {
				this.$set(this.attr.productSelect, 'cart_num', e);
			},
			// 后退
			returns: function() {
				if (this.isShow) {
					uni.reLaunch({
						url: '/pages/index/index'
					})
				} else {
					if (this.fromType) {
						let obj = {
							id: this.id,
							cartNum: this.cartNum
						}
						let pages = getCurrentPages();
						let prevPage = pages[pages.length - 2];
						prevPage.$vm.otherFun(obj);
						return uni.navigateBack();
					} else {
						// #ifdef H5
						return history.back();
						// #endif
						// #ifndef H5
						return uni.navigateBack({
							delta: 1,
						})
						// #endif
					}
				}
			},
			tap: function(index) {
				var that = this;
				this.$set(this, 'navActive', index);
				this.$set(this, 'lock', true);
				this.$set(this, 'scrollTop', index > 0 ? that.topArr[index] - app.globalData.navHeight / 2 : that
					.topArr[index]);
			},
			scroll: function(e) {
				var that = this,
					scrollY = e.detail.scrollTop;
				this.old.scrollTop = e.detail.scrollTop
				if (scrollY < this.spuInfoTop) {
					this.headerShow = false
				} else {
				   	this.headerShow = true
				}
				
				
					
				
					
					
		
				// var opacity = scrollY / 200;
				// opacity = opacity > 1 ? 1 : opacity;
				// let showAnimate = scrollY > 0 ? false : true
				// that.$set(that, 'opacity', opacity);
				// that.$set(that, 'scrollY', scrollY);
				// that.$set(that, 'showAnimate', showAnimate);
				// that.$set(that, 'currentPage', false);
				// if (that.lock) {
				// 	that.$set(that, 'lock', false);
				// 	return;
				// }
				// for (var i = 0; i < that.topArr.length; i++) {
				// 	if (scrollY < that.topArr[i] - app.globalData.navHeight / 2 + that.heightArr[i]) {
				// 		that.$set(that, 'navActive', i);
				// 		break;
				// 	}
				// }
			},
			/*
			 *去商品详情页
			 */
			goDetail(item) {
				// if (item.activity.length == 0) {
					uni.redirectTo({
						url: '/pages/goods_details/index?id=' + item.id
					});
					// return;
				// }
				// // 砍价
				// if (item.activity && item.activity.type == 2) {
				// 	uni.redirectTo({
				// 		url: `/pages/activity/goods_bargain_details/index?id=${item.activity.id}&spid=${this.uid}`
				// 	});
				// 	return;
				// }
				// // 拼团
				// if (item.activity && item.activity.type == 3) {
				// 	uni.redirectTo({
				// 		url: `/pages/activity/goods_combination_details/index?id=${item.activity.id}`
				// 	});
				// 	return;
				// }
				// // 秒杀
				// if (item.activity && item.activity.type == 1) {
				// 	uni.redirectTo({
				// 		url: `/pages/activity/goods_seckill_details/index?id=${item.activity.id}&time=${item.activity.time}&status=1`
				// 	});
				// 	return;
				// }
			},
			// 微信登录回调
			onLoadFun: function(e) {
				this.downloadFilePromotionCode();
				this.getUserInfo();
				this.getCartCount();
				this.isShowAuth = false;
			},
			ChangCouponsClone: function() {
				this.$set(this.coupon, 'coupon', false);
			},
			/*
			 * 获取用户信息
			 */
			getUserInfo: function() {
				let that = this;
				getUserInfo().then(res => {
					that.$set(that.sharePacket, 'isState', that.sharePacket.priceName != 0 ? false : true);
					that.$set(that, 'uid', res.data.uid);
					that.$set(that, 'is_money_level', res.data.is_money_level);
					that.$set(that, 'userPhone', res.data.phone)
				});
			},
			/**
			 * 购物车数量加和数量减
			 *
			 */
			ChangeCartNum: function(changeValue) {
				//changeValue:是否 加|减
				//获取当前变动属性
				let productSelect = this.productValue[this.attrValue];
				//如果没有属性,赋值给商品默认库存
				if (productSelect === undefined && !this.attr.productAttr.length) productSelect = this.attr
					.productSelect;
				//无属性值即库存为0；不存在加减；
				if (productSelect === undefined) return;
				let stock = productSelect.stock || 0;
				let num = this.attr.productSelect;
				if (changeValue) {
					num.cart_num++;
					if (num.cart_num > stock) {
						this.$set(this.attr.productSelect, 'cart_num', stock ? stock : 1);
						this.$set(this, 'cart_num', stock ? stock : 1);
					}
				} else {
					num.cart_num--;
					if (num.cart_num < 1) {
						this.$set(this.attr.productSelect, 'cart_num', 1);
						this.$set(this, 'cart_num', 1);
					}
				}
			},
			attrVal(val) {
				console.log(val)
				
				if (val.indexw) {
					this.$set(this.attr.productAttr[val.indexw], 'index', this.attr.productAttr[val.indexw].attr_values[val
						.indexn]);
				}
				this.$set(this, 'lease_mode', val.lease_mode);
				console.log(this.lease_mode)
				this.$set(this, 'total_day', val.total_day);
				this.$set(this, 'lease_mode_value', val.lease_mode_value);
				this.$set(this, 'total_day_value',  val.total_day_value);
			},
			/**
			 * 属性变动赋值
			 *
			 */
			ChangeAttr: function(res) {
				let productSelect = this.productValue[res];
				this.$set(this, "selectSku", productSelect);
				if (productSelect && productSelect.stock >= 0) {
					this.$set(this.attr.productSelect, 'image', productSelect.image);
					this.$set(this.attr.productSelect, 'price', productSelect.price);
					this.$set(this.attr.productSelect, 'stock', productSelect.stock);
					this.$set(this.attr.productSelect, 'unique', productSelect.unique);
					this.$set(this.attr.productSelect, 'cart_num', 1);
					this.$set(this.attr.productSelect, 'vip_price', productSelect.vip_price);
					this.$set(this, 'attrValue', res);
					this.$set(this, 'attrTxt', '已选择');
				} else {
					this.$set(this.attr.productSelect, 'image', this.storeInfo.image);
					this.$set(this.attr.productSelect, 'price', this.storeInfo.price);
					this.$set(this.attr.productSelect, 'stock', 0);
					this.$set(this.attr.productSelect, 'unique', '');
					this.$set(this.attr.productSelect, 'cart_num', 0);
					this.$set(this.attr.productSelect, 'vip_price', this.storeInfo.vip_price);
					this.$set(this, 'attrValue', res);
					this.$set(this, 'attrTxt', '已选择');
				}
			},
			/**
			 * 领取完毕移除当前页面领取过的优惠券展示
			 */
			ChangCoupons: function(e) {
				let coupon = e;
				let couponList = this.$util.ArrayRemove(this.couponList, 'id', coupon.id);
				this.$set(this, 'couponList', couponList);
				this.getCouponList();
			},

			setClientHeight: function() {
				// let that = this;
				// if (!that.good_list.length) return;
				// let view = uni
				// 	.createSelectorQuery()
				// 	.in(this)
				// 	.select('#list0');
				// view.fields({
				// 		size: true
				// 	},
				// 	data => {
				// 		that.$set(that, 'clientHeight', data.height + 20);
				// 		that.$nextTick(() => {
				// 			that.infoScroll();
				// 		})
				// 	}
				// ).exec();
			},
			// 推荐商品
			getGoodsList() {
				let that = this;
				getProductRecommend(that.id).then(res => {
					that.$set(that, 'productList', res.data);
					let good_list = res.data || [];
					let count = Math.ceil(good_list.length / 6);
					let goodArray = new Array();
					for (let i = 0; i < count; i++) {
						let list = good_list.slice(i * 6, i * 6 + 6);
						if (list.length)
							goodArray.push({
								list: list
							});
					}
					that.$set(that, 'good_list', goodArray);
					if (goodArray.length && this.diyProduct.is_recommend) {
						that.navList.splice(-1, 0, '推荐');
					}
					that.$nextTick(() => {
						if (good_list.length) {
							// #ifndef APP-PLUS
							that.setClientHeight();
							// #endif
							// #ifdef APP-PLUS
							setTimeout(() => {
								that.setClientHeight();
							}, 1000)
							// #endif
						}
					});
				}).catch(err => {
					return this.$util.Tips({
						title: err
					});
				})
			},
			// 获取产品活动详情
			getGoodsCtivity() {
				let that = this;
				getProductCtivity(that.id, {
					promotions_type: this.promotions_type
				}).then(res => {
					that.$set(that, 'activityBg', res.data.activity_background.image || '');
					that.$set(that, 'activity', res.data.activity ? res.data.activity : []);
					that.$set(that, 'couponList', res.data.coupons);
					that.$set(that, 'discountsData', res.data.discounts_products ? res.data.discounts_products :
					[]); //套餐数据
					let promotions = res.data.promotions[0];
					that.$set(that, 'promotions_type', res.data.promotions.length ? promotions.promotions_type :
						0);
					if (res.data.promotions.length && promotions.promotions_type == 1) {
						let discount = that.$util.$h.Div(promotions.discount, 100);
						let discountPrice = that.$util.$h.Mul(discount, this.storeInfo.price);
						that.$set(that.limitInfo, 'price', this.storeInfo.price || 0);
						that.$set(that.limitInfo, 'datatime', promotions.stop_time || 0);
						that.$set(that.limitInfo, 'discount', discount);
						that.$set(that.limitInfo, 'discount_price', discountPrice);
					}
					that.$set(that.discountInfo, 'discount', res.data.promotions);
					that.$nextTick(() => {
						that.infoScroll();
					})
				}).catch(err => {
					return this.$util.Tips({
						title: err
					});
				})

			},
			/**
			 * 获取产品详情
			 *
			 */
			getGoodsDetails: function() {
				uni.showLoading({
					title: '加载中...'
				})
				let that = this;
				let obj = '';
				if (that.fromPage) {
					obj = newcomerDetail;
				} else {
					obj = getProductDetail;
				}
				obj(that.id, {
						promotions_type: this.promotions_type
					})
					.then(res => {
						let storeInfo = res.data.storeInfo;
						
						that.$set(that, 'stage_day_temp', storeInfo.stage_day);
						that.$set(that, 'lease_mode_temp', storeInfo.lease_mode[0].id);
						that.$set(that, 'lease_mode_value', storeInfo.lease_mode[0].name);
						that.$set(that, 'total_day_temp', storeInfo.total_day[0].value);
						that.$set(that, 'total_day_value', storeInfo.total_day[0].name);
						that.$set(that, 'stage_day', storeInfo.stage_day);
						that.$set(that, 'lease_mode', storeInfo.lease_mode[0].id);
						that.$set(that, 'total_day', storeInfo.total_day[0].value);
						that.$set(that, 'storeInfo', storeInfo);
						that.$set(that.ensureInfo, 'ensure', storeInfo.ensure);
						let ensureTitle = [];
						storeInfo.ensure.forEach(res => {
							ensureTitle.push(res.name)
						})
						that.$set(that.ensureInfo, 'ensureTitle', ensureTitle.join(' · '));
						that.$set(that.specsInfo, 'specs', storeInfo.specs);
						that.$set(that.accessoryInfo, 'accessory', storeInfo.accessory);
						that.$set(that, 'description', storeInfo.description);
						that.$set(that, 'posterTitle', res.data.product_poster_title);
						this.description = this.description.replace(
							/<img/gi,
							'<img style="max-width:100%;height:auto;float:left;display:block" ');
						that.$set(that, 'reply', res.data.reply);
						that.$set(that, 'replyCount', res.data.replyCount);
						that.$set(that, 'replyChance', res.data.replyChance);
						that.$set(that.attr, 'productAttr', res.data.productAttr);
						that.$set(that, 'productValue', res.data.productValue);
						for (let key in res.data.productValue) {
							let obj = res.data.productValue[key];
							that.skuArr.push(obj)
						}
                        if (!that.skuArr.length) {
							that.skuArr = [
								{
									image: this.storeInfo.image,
									suk: this.storeInfo.store_name,
									price: this.storeInfo.price
									
								}
							];
						}
						this.$set(this, "selectSku", that.skuArr[0]);
						that.$set(that, 'is_vip', res.data.storeInfo
							.is_vip);
						that.$set(that.sharePacket, 'priceName', res.data.priceName);
						that.$set(that, 'storeSelfMention', res.data.store_self_mention);
						// that.$set(that, 'good_list', goodArray);
						// that.$set(that, 'activity', res.data.activity ? res.data.activity : []);
						// that.$set(that, 'couponList', res.data.coupons);
						that.$set(that, 'shareQrcode', res.data.share_qrcode);
						that.$set(that, 'routineContact', Number(res.data.routine_contact_type));
						// that.$set(that, 'discountsData', res.data.discounts_products ? res.data
						// 	.discounts_products : []); //套餐数据
						// uni.setNavigationBarTitle({
						// 	title: storeInfo.store_name.substring(0, 13) + '...'
						// });
						uni.setNavigationBarTitle({
							title: '商品详情'
						})
						that.$set(that, 'diff', that.$util.$h.Sub(storeInfo.price, storeInfo.vip_price));
						that.siteName = res.data.site_name;
						var navList = ['商品', '详情'];
						if (res.data.replyCount && that.diyProduct.is_reply) {
							navList.splice(1, 0, '评价');
						}
						// if (goodArray.length) {
						// 	navList.splice(-1, 0, '推荐');
						// }
						that.$set(that, 'navList', navList);
						// #ifdef H5
						that.$set(that, 'storeImage', that.storeInfo.image);
						// if (that.isLogin) {
							that.ShareInfo();
						// }
						if (this.$wechat.isWeixin() && this.shareQrcode == '1') {
							that.followWX();
						} else {
							that.getImageBase64();
						}
						// #endif
						if (that.isLogin) {
							that.getUserInfo();
						}
						
						const query = uni.createSelectorQuery();
						setTimeout(() => {
							this.$nextTick(() => {
								query.select('#past1')
								.boundingClientRect(data => {
									console.log(data)
									this.spuInfoTop = data.top;
									console.log(this.spuInfoTop)
								})
								.exec();
							})
						}, 500);
						
						setTimeout(function() {
							that.infoScroll();
						}, 500);
						// #ifndef H5
						that.downloadFilestoreImage();
						// #endif
						that.DefaultSelect();
						that.getCartCount();
						setTimeout(() => {
							this.showSkeleton = false
						}, 200)
						if (!that.fromPage) {
							that.getGoodsList();
							that.getGoodsCtivity();
						}
						
						setTimeout(() => {
							that.loaded = true
							uni.hideLoading()
						}, 500)
						
						// 
					}).catch(err => {
						//状态异常返回上级页面
						return that.$util.Tips({
							title: err.toString()
						}, {
							tab: 3,
							url: 1
						});
						setTimeout(() => {
							this.showSkeleton = false
						}, 500)
						
						setTimeout(() => {
							uni.hideLoading()
						}, 500)
						
						// uni.hideLoading()
					});

			},
			infoScroll: function() {
				// var that = this,
				// 	topArr = [],
				// 	heightArr = [];
				// for (var i = 0; i < that.navList.length; i++) {
				// 	//获取元素所在位置
				// 	var query = uni.createSelectorQuery().in(this);
				// 	var idView = '#past' + i;
				// 	if (((!this.replyCount || !this.diyProduct.is_reply) && (!that.good_list.length || !that.diyProduct
				// 			.is_recommend) && i == 1) || (this.replyCount && this.diyProduct.is_reply && (!that
				// 			.good_list.length || !that.diyProduct.is_recommend) && i == 2) || ((!this.replyCount || !
				// 				this.diyProduct.is_reply) && that.good_list.length && that.diyProduct.is_recommend &&
				// 			i == 2)) {
				// 		idView = "#past" + 3;
				// 	}
				// 	if ((!this.replyCount || !this.diyProduct.is_reply) && that.good_list.length && that.diyProduct
				// 		.is_recommend && i == 1) {
				// 		idView = "#past" + 2;
				// 	}
				// 	query.select(idView).boundingClientRect();
				// 	query.exec(function(res) {
				// 		var top = res[0].top;
				// 		var height = res[0].height;
				// 		topArr.push(top);
				// 		heightArr.push(height);
				// 		that.$set(that, 'topArr', topArr);
				// 		that.$set(that, 'heightArr', heightArr);
				// 	});
				// }
			},
			/**
			 * 默认选中属性
			 *
			 */
			DefaultSelect: function() {
				let productAttr = this.attr.productAttr;
				let valueobj = [];
				let value = [];
				for (var key in this.productValue) {
					if (this.productValue[key].stock > 0) {
						valueobj = this.attr.productAttr.length ? key.split(',') : [];
						break;
					}
				}
				// 处理已售罄时默认选中第一个
				if (!valueobj.length && this.attr.productAttr.length) {
					value = Object.keys(this.productValue)[0].split(',');
				} else {
					value = valueobj;
				}
				for (let i = 0; i < productAttr.length; i++) {
					this.$set(productAttr[i], 'index', value[i]);
				}
				
				let modeValue = '';
				let dayValue = ''
				
				// for (var i = 0; i < this.storeInfo.lease_mode.length; i++) {
				// 	if (this.storeInfo.lease_mode[i].id == this.lease_mode) {
				// 		modeValue = this.storeInfo.lease_mode[i].name
				// 		break
				// 	}
				// }
				
				// for (var i = 0; i < this.storeInfo.total_day.length; i++) {
				// 	if (this.storeInfo.total_day[i].id == this.total_day) {
				// 		dayValue = this.storeInfo.total_day[i].name
				// 		break
				// 	}
				// }
				
				
				
				//sort();排序函数:数字-英文-汉字；
				let productSelect = this.productValue[value.join(',')];
				if (productSelect && productAttr.length) {
					this.$set(this.attr.productSelect, 'store_name', this.storeInfo.store_name);
					this.$set(this.attr.productSelect, 'image', productSelect.image);
					this.$set(this.attr.productSelect, 'price', productSelect.price);
					this.$set(this.attr.productSelect, 'stock', productSelect.stock);
					this.$set(this.attr.productSelect, 'unique', productSelect.unique);
					this.$set(this.attr.productSelect, 'cart_num', 1);
					this.$set(this, 'attrValue', value.join(','));
					this.$set(this.attr.productSelect, 'vip_price', productSelect.vip_price);
					this.$set(this, 'attrTxt', '已选择');
					
					getDayPrice({
						product_id: this.storeInfo.id,
						product_attr_unique: productSelect.unique,
						total_day: this.total_day_temp,
						lease_mode: this.lease_mode_temp,
						stage_day: this.storeInfo.stage_day
					}).then(res => {
						this.$set(this, "day_price", res.data.day_price)
					})
					
				} else if (!productSelect && productAttr.length) {
					this.$set(this.attr.productSelect, 'store_name', this.storeInfo.store_name);
					this.$set(this.attr.productSelect, 'image', this.storeInfo.image);
					this.$set(this.attr.productSelect, 'price', this.storeInfo.price);
					this.$set(this.attr.productSelect, 'stock', 0);
					this.$set(this.attr.productSelect, 'unique', '');
					this.$set(this.attr.productSelect, 'cart_num', 0);
					this.$set(this.attr.productSelect, 'vip_price', this.storeInfo.vip_price);
					this.$set(this, 'attrValue', '');
					this.$set(this, 'attrTxt', '请选择');
				} else if (!productSelect && !productAttr.length) {
					this.$set(this.attr.productSelect, 'store_name', this.storeInfo.store_name);
					this.$set(this.attr.productSelect, 'image', this.storeInfo.image);
					this.$set(this.attr.productSelect, 'price', this.storeInfo.price);
					this.$set(this.attr.productSelect, 'stock', this.storeInfo.stock);
					this.$set(this.attr.productSelect, 'unique', this.storeInfo.unique || '');
					this.$set(this.attr.productSelect, 'cart_num', 1);
					this.$set(this.attr.productSelect, 'vip_price', this.storeInfo.vip_price);
					this.$set(this, 'attrValue', '');
					this.$set(this, 'attrTxt', '请选择');
				}
			},
			/**
			 * 获取优惠券
			 *
			 */
			getCouponList(type) {
				let that = this,
					obj = {
						page: 1,
						limit: 20,
						product_id: that.id
					};
				if (type !== undefined || type !== null) {
					obj.type = type;
				}
				getCoupons(obj).then(res => {
					that.$set(that.coupon, 'count', res.data.count);
					if (type === undefined || type === null) {
						let count = [...that.coupon.count],
							indexs = '';
						let index = count.findIndex(item => item);
						let delCount = that.coupon.count,
							newDelCount = [];
						let countIndex = 0;
						delCount.forEach((item, index) => {
							if (item === 0) {
								countIndex = index;
							} else {
								newDelCount.push(item)
							}
						});
						if (newDelCount.length == 3) {
							indexs = 2;
						} else if (newDelCount.length == 2) {
							if (countIndex === 2) {
								indexs = 1;
							} else {
								indexs = 2;
							}
						} else {
							indexs = delCount.findIndex(item => item === count[index]);
						}
						that.$set(that.coupon, 'type', indexs);
						that.getCouponList(indexs);
					} else {
						that.$set(that.coupon, 'list', res.data.list);
					}
				});
			},
			ChangCouponsUseState(index) {
				let that = this;
				that.coupon.list[index].is_use = true;
				that.$set(that.coupon, 'list', that.coupon.list);
				that.$set(that.coupon, 'coupon', false);
			},
			/**
			 *
			 *
			 * 收藏商品
			 */
			setCollect: Debounce(function() {
				if (this.isLogin === false) {
					this.getIsLogin();
				} else {
					let that = this;
					if (this.storeInfo.userCollect) {
						collectDel(this.storeInfo.id).then(res => {
							that.$set(that.storeInfo, 'userCollect', !that.storeInfo.userCollect);
							return that.$util.Tips({
								title: res.msg
							});
						});
					} else {
						collectAdd(this.storeInfo.id).then(res => {
							that.$set(that.storeInfo, 'userCollect', !that.storeInfo.userCollect);
							return that.$util.Tips({
								title: res.msg
							});
						});
					}
				}
			}),
			/**
			 * 打开属性插件
			 */
			selecAttr: Debounce(function() {
				this.currentPage = false;
				// if (this.isLogin === false) {
				// 	this.getIsLogin();
				// } else {
					this.$set(this.attr, 'cartAttr', true);
					this.$set(this, 'isOpen', true);
				// }
			}),
			/**
			 * 打开优惠券插件
			 */
			couponTap: function() {
				let that = this;
				this.currentPage = false;
				if (that.isLogin === false) {
					this.getIsLogin();
				} else {
					that.getCouponList();
					that.$set(that.coupon, 'coupon', true);
				}
			},
			onMyEvent: function() {
				this.$set(this.attr, 'cartAttr', false);
				this.$set(this, 'isOpen', false);
			},
			myEnsure() {
				this.$set(this.ensureInfo, 'show', false);
			},
			mySpecs() {
				this.$set(this.specsInfo, 'show', false);
			},
			myLeasedInfo() {
				this.$set(this.leasedInfo, 'show', false)
			},
			myAccessory() {
				this.$set(this.accessoryInfo, 'show', false);
			},
			myDiscount() {
				this.$set(this.discountInfo, 'show', false);
			},
			/**
			 * 打开属性加入购物车
			 *
			 */
			joinCart: function(e) {
				
				
				this.currentPage = false;
				//是否登录
				if (this.isLogin === false) {
					this.getIsLogin();
				} else {
					this.goCat();
				}
			},
			/*
			 * 加入购物车
			 */
			goCat: function(news) {
				let that = this,
					productSelect = that.productValue[this.attrValue];
				//打开属性
				if (that.attrValue) {
					//默认选中了属性，但是没有打开过属性弹窗还是自动打开让用户查看默认选中的属性
					that.attr.cartAttr = !that.isOpen ? true : false;
				} else {
					if (that.isOpen) that.attr.cartAttr = true;
					else that.attr.cartAttr = !that.attr.cartAttr;
				}
				//只有关闭属性弹窗时进行加入购物车
				if (that.attr.cartAttr === true && that.isOpen === false) return (that.isOpen = true);
				//如果有属性,没有选择,提示用户选择
				if (that.attr.productAttr.length && productSelect === undefined && that.isOpen === true)
					return that.$util.Tips({
						title: '产品库存不足，请选择其它属性'
					});
				if (that.attr.productSelect.cart_num <= 0) {
					that.attr.productSelect.cart_num = 1
					that.isOpen = false
					return that.$util.Tips({
						title: '请先选择属性'
					});
				}
				let q = {
					cartNum: that.attr.productSelect.cart_num,
					new: news === undefined ? 0 : 1,
					uniqueId: that.attr.productSelect !== undefined ? that.attr.productSelect.unique : ''
				};
				
				if (that.fromPage) {
					q.productId = that.storeInfo.product_id;
					q.newcomerId = that.id;
				} else {
					q.productId = that.id;
				}
				q.stage_day = that.storeInfo.stage_day
				q.lease_mode = that.lease_mode
				q.total_day = that.total_day
				postCartAdd(q)
					.then(function(res) {
						that.isOpen = false;
						that.attr.cartAttr = false;
						if (news) {
							uni.navigateTo({
								url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cartId
							});
						} else {
							that.$util.Tips({
								title: '添加购物车成功',
								success: () => {
									that.cartNum = res.data.cartNum;
									that.getCartCount(true);
								}
							});
						}
					})
					.catch(err => {
				
						that.isOpen = false;
						return that.$util.Tips({
							title: err
						});
					});
			},
			/**
			 * 获取购物车数量
			 * @param boolean 是否展示购物车动画和重置属性
			 */
			getCartCount: function(isAnima) {
				let that = this;
				const isLogin = that.isLogin;
				if (isLogin) {
					getCartCounts().then(res => {
						that.CartCount = res.data.count;
						this.$store.commit('indexData/setCartNum', that.CartCount > 99 ? '...' : that
							.CartCount + '')
						//加入购物车后重置属性
						if (isAnima) {
							that.animated = true;
							setTimeout(function() {
								that.animated = false;
							}, 500);
						}
					});
				}
			},
			
			
			goShow: function(e) {
				this.$set(this.attr, 'cartAttr', true);
				this.$set(this, 'isOpen', true);
			},
			
			/**
			 * 立即购买
			 */
			goBuy: function(e) {
				this.currentPage = false;
				if (this.isLogin === false) {
					this.getIsLogin();
				} else {
					my.getPhoneNumber({
						 success: (res) => {
							let asd = JSON.parse(res.response);
							getUserTel(res.response).then((resd) => {
							  if (resd.status == 200) {
								this.goCat(true);
							  }
							}).catch(err => {
								this.$util.Tips({
									title: err
								});
							}) 
						 }
					})
				}
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e;
			},
			/**
			 * 分享打开
			 *
			 */
			listenerActionSheet: function() {
				this.currentPage = false
				if (this.isLogin === false) {
					this.getIsLogin();
				} else {
					// #ifdef H5
					if (this.$wechat.isWeixin() === true) {
						this.weixinStatus = true;
					}
					// #endif
					this.posters = true;
					this.goPoster();
				}
			},
			// 分享关闭
			listenerActionClose: function() {
				this.posters = false;
			},
			//隐藏海报
			posterImageClose: function() {
				this.posterImageStatus = false;
				this.posters = false;
			},
			//替换安全域名
			setDomain: function(url) {
				url = url ? url.toString() : '';
				//本地调试打开,生产请注销
				if (url.indexOf('https://') > -1) return url;
				else return url.replace('http://', 'https://');
			},
			//获取海报产品图
			downloadFilestoreImage: function() {
				let that = this;
				uni.downloadFile({
					url: that.setDomain(that.storeInfo.image),
					success: function(res) {
						that.storeImage = res.tempFilePath;
						that.base64Show = 1;
					},
					fail: function() {
						return that.$util.Tips({
							title: ''
						});
						that.storeImage = '';
					}
				});
			},
			/**
			 * 获取产品分销二维码
			 * @param function successFn 下载完成回调
			 *
			 */
			downloadFilePromotionCode: function(successFn) {
				let that = this;
				// getProductCode(that.id).then(res => {
				// 		uni.downloadFile({
				// 			url: that.setDomain(res.data.code),
				// 			success: function(res) {
				// 				that.$set(that, 'isDown', false);
				// 				if (typeof successFn == 'function') successFn && successFn(res
				// 					.tempFilePath);
				// 				else that.$set(that, 'PromotionCode', res.tempFilePath);
				// 			},
				// 			fail: function() {
				// 				that.$set(that, 'isDown', false);
				// 				that.$set(that, 'PromotionCode', '');
				// 			}
				// 		});
				// 	})
				// 	.catch(err => {
				// 		that.$set(that, 'isDown', false);
				// 		that.$set(that, 'PromotionCode', '');
				// 	});
			},
			getImageBase64: function(type) {
				let that = this;
				imageBase64(that.storeImage, that.followCode)
					.then(res => {
						that.storeImage = res.data.image;
						if (type) {
							that.PromotionCode = res.data.code;
						}
						that.base64Show = 1;
					})
					.catch(() => {});
			},
			// 小程序关闭分享弹窗；
			// goFriend: function() {
			// 	this.posters = false;
			// },
			/**
			 * 生成海报
			 */
			goPoster: function() {
				let that = this;
				that.$set(that, 'canvasStatus', true);
				let arr2 = [that.posterbackgd, that.storeImage, that.PromotionCode];
				// #ifdef MP
				if (that.PromotionCode == '' && !that.isDown) {
					return that.$util.Tips({
						title: '小程序二维码需要发布正式版后才能获取到'
					}, function() {
						that.posters = false;
					});
				}
				if (that.isDown)
					return that.$util.Tips({
						title: '正在下载海报,请稍后再试！'
					}, function() {
						that.posters = false;
					});
				// #endif
				uni.getImageInfo({
					src: that.PromotionCode,
					fail: function(res) {
						// #ifdef H5 || APP-PLUS
						return that.$util.Tips({
							title: res.errMsg
						});
						// #endif
						// #ifdef MP
						return that.$util.Tips({
							title: '小程序二维码需要发布正式版后才能获取到'
						});
						// #endif
					},
					success() {
						if (arr2[2] == '') {
							//海报二维码不存在则从新下载
							that.downloadFilePromotionCode(function(msgPromotionCode) {
								arr2[2] = msgPromotionCode;
								if (arr2[2] == '')
									return that.$util.Tips({
										title: '海报二维码生成失败！'
									});
								that.$nextTick(function() {
									that.$util.PosterCanvas(that.fontColor, that.themeColor,
										that.siteName,
										arr2, that.storeInfo.store_name, that.storeInfo
										.price, that.storeInfo.ot_price, that.posterTitle,
										function(tempFilePath) {
											that.$set(that, 'posterImage', tempFilePath);
											that.$set(that, 'posterImageStatus', true);
											that.$set(that, 'canvasStatus', false);
											that.$set(that, 'actionSheetHidden', !that
												.actionSheetHidden);
										});
								})
							});
							// // #ifdef H5
							// that.$util.PosterCanvas(arr2, that.storeInfo.store_name, that.storeInfo.price, function(tempFilePath) {
							// 	that.$set(that, 'posterImage', tempFilePath);
							// 	that.$set(that, 'posterImageStatus', true);
							// 	that.$set(that, 'canvasStatus', false);
							// 	that.$set(that, 'actionSheetHidden', !that.actionSheetHidden);
							// });
							// // #endif
						} else {
							//生成推广海报 
							that.$nextTick(function() {
								that.$util.PosterCanvas(that.fontColor, that.themeColor, that.siteName,
									arr2, that
									.storeInfo.store_name, that.storeInfo.price, that
									.storeInfo.ot_price,that.posterTitle,
									function(tempFilePath) {
										that.$set(that, 'posterImage', tempFilePath);
										that.$set(that, 'posterImageStatus', true);
										that.$set(that, 'canvasStatus', false);
										that.$set(that, 'actionSheetHidden', !that
											.actionSheetHidden);
									});
							})
						}
					}
				});
			},

			/*
			 * 保存到手机相册
			 */
			// #ifdef MP
			copyCommand: function() {
				if (wx.navigateToMiniProgram) {
					wx.navigateToMiniProgram({
						appId: 'wxb036cafe2994d7d0',
						path: '/publish/ugc-publish/ugc-publish',
						extraData: {
							productInfo: {
								title: this.storeInfo.store_name,
								path: '/pages/goods_details/index?id=' + this.storeInfo.id,
								thumbUrl: this.storeInfo.image
							}
						}
					});
				}
			},
			savePosterPath: function() {
				let that = this;
				uni.getSetting({
					success(res) {
						if (!res.authSetting['scope.writePhotosAlbum']) {
							uni.authorize({
								scope: 'scope.writePhotosAlbum',
								success() {
									uni.saveImageToPhotosAlbum({
										filePath: that.posterImage,
										success: function(res) {
											that.posterImageClose();
											that.$util.Tips({
												title: '保存成功',
												icon: 'success'
											});
										},
										fail: function(res) {
											that.$util.Tips({
												title: '保存失败'
											});
										}
									});
								}
							});
						} else {
							uni.saveImageToPhotosAlbum({
								filePath: that.posterImage,
								success: function(res) {
									that.posterImageClose();
									that.$util.Tips({
										title: '保存成功',
										icon: 'success'
									});
								},
								fail: function(res) {
									that.$util.Tips({
										title: '保存失败'
									});
								}
							});
						}
					}
				});
			},
			// #endif
			//#ifdef APP-PLUS
			savePosterPath() {
				let that = this
				uni.saveImageToPhotosAlbum({
					filePath: that.posterImage,
					success: function(res) {
						that.posterImageClose();
						that.$util.Tips({
							title: '保存成功',
							icon: 'success'
						});
					},
					fail: function(res) {
						that.$util.Tips({
							title: '保存失败'
						});
					}
				});
			},
			// #endif


			//#ifdef H5
			ShareInfo() {
				let data = this.storeInfo;
				let href = location.href;
				if (this.$wechat.isWeixin()) {
					getUserInfo().then(res => {
						href = href.indexOf('?') === -1 ? href + '?spid=' + res.data.uid : href + '&spid=' +
							res.data.uid;

						let configAppMessage = {
							desc: data.store_info,
							title: data.store_name,
							link: href,
							imgUrl: data.image
						};
						this.$wechat
							.wechatEvevt(['updateAppMessageShareData', 'updateTimelineShareData',
								'onMenuShareAppMessage',
								'onMenuShareTimeline'
							], configAppMessage)
							.then(res => {})
							.catch(err => {});
					});
				}
			},
			//#endif
			tabCouponType: function(type) {
				this.$set(this.coupon, 'type', type);
				this.getCouponList(type);
			},
			goDiscounts() {
				uni.navigateTo({
					url: '/pages/goods_details/discountsGoodsList?id=' + this.id
				})
			},
		}
	};
</script>

<style lang="scss">
	
	/deep/uni-video {
		width: 100% !important;
	}

	/deep/video {
		width: 100% !important;
	}

	/deep/.userEvaluation .evaluateWtapper .evaluateItem {
		margin: 0 !important;
	}
	
	.product-con .wrapper.ons{
		margin: 0 !important;
		border-radius: 0;
		height: 100rpx;
		padding: 0 20rpx;
		background-size: 100% 100%;
		background-repeat: no-repeat;
	}
	.product-con .wrapper.ons .share .money{
		color: #fff !important;
	}
	
	.product-con .wrapper.ons .share .money .vip-money{
		color: #fff !important;
	}
	
	// .product-con .wrapper.on{
	// 	padding-top: 1rpx;
	// }
	
	.product-con .wrapper.ons .share{
		padding-top: 0;
	}
	
	.product-con .wrapper .share .money .vip-money{
		display: inline-block;
	}
	
	.product-con .wrapper .share .money .icon{
		margin-left: 6rpx;
	}
	
	.product-con .wrapper .share .money .level{
		display: inline-block;
	}

	.product-con .wrapper .label .item {
		width: 210rpx;

		&~.item {
			margin-left: 18rpx;
		}

		&.sales {
			text-align: right;
		}

		&.stock {
			text-align: center;
		}
	}

	.product-con .wrapper .introduce .infor {
		width: 570rpx;
		padding-top: 30rpx;
	}

	.product-con .wrapper .introduce .iconfont {
		font-size: 37rpx;
		color: #515151;
		padding-top: 30rpx;
	}

	.discount .white .timeItem {
		font-size: 20rpx;
		color: #fff;
		position: absolute;
		top: -6rpx;
		right: 0rpx;
	}

	.discount .white /deep/.time .styleAll {
		padding: 0 6rpx;
		font-size: 22rpx;
		color: var(--view-theme);
		background-color: #fff;
		border-radius: 6rpx
	}

	.discount .white /deep/.time .red {
		color: #fff !important;
	}

	.discount {
		background-color: var(--view-theme);
		width: 100%;
		height: 148rpx;

		.white {
			background: url(../activity/static/discount.png) no-repeat;
			background-size: 100% 100%;
			width: 710rpx;
			height: 116rpx;
			color: var(--view-theme);
			font-size: 20rpx;
			padding: 6rpx 14rpx;
			position: relative;

			.icon-jinru3 {
				position: absolute;
				right: 10rpx;
				bottom: 18rpx;
				font-size: 22rpx;
				padding: 8rpx;
			}

			.right {
				margin-left: 40rpx;

				.num {
					font-size: 24rpx;
					margin-top: 2rpx;
				}
			}

			.y_money {
				margin: 0 40rpx;

				.num {
					font-size: 24rpx;
					margin-top: 2rpx;
				}
			}

			.left {
				min-width: 235rpx;

				.iconfont {
					font-size: 26rpx;
				}

				.money {
					font-size: 28rpx;
					font-weight: 600;
					margin-top: 5rpx;

					.num {
						font-size: 48rpx;
					}
				}
			}
		}
	}

	.presell_count {
		font-size: 26rpx;
		color: #999999;
		padding: 20rpx;

		.presell_time {
			margin: 8rpx 0 4rpx;

			.area_line {
				display: inline-block;
				margin: 0 6rpx;
			}
		}

		.icon-shijian1 {
			display: inline-block;
			margin-right: 4rpx;
			font-size: 28rpx;
		}
	}

	.store {
		background-color: #fff;
		margin: 20rpx 20rpx 0 20rpx;
		border-radius: 16rpx;

		.title {
			height: 80rpx;
			width: 100%;
			font-size: 28rpx;
			color: #333;
			padding: 0 20rpx;

			.icon-jinru2 {
				color: #7a7a7a;
				font-size: 28rpx;
			}
		}
	}

	.activity_pin {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		// background: linear-gradient(90deg, rgba(233, 51, 35, 1) 0%, rgba(250, 101, 20, 1) 100%);
		background-color: var(--view-theme);
		opacity: 1;
		border-radius: 22rpx;
		padding: 0 15rpx;
		margin-left: 19rpx;
	}

	.activity_miao {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		padding: 0 15rpx;
		// background: linear-gradient(90deg, rgba(250, 102, 24, 1) 0%, rgba(254, 161, 15, 1) 100%);
		background-color: var(--view-theme);
		opacity: 1;
		border-radius: 22rpx;
		margin-left: 19rpx;
	}

	.iconfonts {
		color: #fff !important;
		font-size: 28rpx;
	}

	.activity_title {
		font-size: 24rpx;
		color: #fff;
	}

	.activity_kan {
		width: auto;
		height: 44rpx;
		line-height: 44rpx;
		padding: 0 15rpx;
		// background: linear-gradient(90deg, rgba(254, 159, 15, 1) 0%, rgba(254, 178, 15, 1) 100%);
		background-color: var(--view-theme);
		opacity: 1;
		border-radius: 22rpx;
		margin-left: 19rpx;
	}

	.mask {
		// z-index: 300 !important;
	}

	.head-bar {
		background: #fff;
	}

	.generate-posters {
		width: 100%;
		height: 318rpx;
		background-color: #fff;
		position: fixed;
		left: 0;
		bottom: 0;
		z-index: 388;
		transform: translate3d(0, 100%, 0);
		transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
		border-top: 1rpx solid #eee;
		border-radius: 20rpx 20rpx 0 0;

		.generateCon {
			height: 220rpx;
		}

		.generateClose {
			height: 98rpx;
			font-size: 24rpx;
			color: #333333;
			border-top: 1px solid #eee;
		}

		.item {
			.pictrue {
				width: 86rpx;
				height: 86rpx;
				border-radius: 50%;
				margin: 0 auto 12rpx auto;

				image {
					width: 100%;
					height: 100%;
					border-radius: 50%;
				}
			}
		}
	}

	.generate-posters.on {
		transform: translate3d(0, 0, 0);
	}

	.generate-posters .item {
		flex: 1;
		text-align: center;
		font-size: 24rpx;
	}

	.generate-posters .item .icon-pengyouquan {
		font-size: 104rpx;
		color: #5eae72;
	}

	.generate-posters .item .iconfont.icon-haibao {
		color: #5391f1;
	}

	.generate-posters .item .iconfont.icon-haowuquan1 {
		color: #ff954d;
	}
	
	.bottom-h {
		height: calc(144rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		height: calc(144rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
		padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
		padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
		
	}

	.product-con .footer {
		padding: 0 20rpx 0 30rpx;
		position: fixed;
		bottom: 0;
		width: 100%;
		box-sizing: border-box;
		background-color: #fff;
		z-index: 277;
		border-top: 1px solid #f0f0f0;
		height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
		height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
		padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/
		padding-bottom: env(safe-area-inset-bottom); ///兼容 IOS>11.2/
	}

	.product-con .footer .item {
		font-size: 18rpx;
		color: #666;
	}

	.product-con .footer .item .iconfont {
		text-align: center;
		font-size: 40rpx;
	}

	.product-con .footer .item .iconfont.icon-shoucang1 {
		color: var(--view-theme);
	}

	.product-con .footer .item .iconfont.icon-gouwuche1 {
		font-size: 40rpx;
		position: relative;
	}

	.product-con .footer .item .iconfont.icon-gouwuche1 .num {
		color: #fff;
		position: absolute;
		font-size: 18rpx;
		padding: 2rpx 10rpx 3rpx;
		border-radius: 200rpx;
		top: -10rpx;
		right: -10rpx;
	}

	.product-con .footer .bnt {
		width: 484rpx;
		height: 76rpx;
	}

	.product-con .footer .bnt .bnts {
		width: 484rpx;
		text-align: center;
		line-height: 76rpx;
		font-size: 28rpx;
	}

	.product-con .footer .bnt .joinCart {
		border-radius: 50rpx 0 0 50rpx;
		background-color: var(--view-bntColor);
		// background-image: linear-gradient(to right, #fea10f 0%, #fa8013 100%);
	}

	.product-con .footer .bnt .buy {
		border-radius: 50rpx;
		background: linear-gradient(90deg, #71EBDA 0%, #39CCC2 100%);
		// background-image: linear-gradient(to right, #fa6514 0%, #e93323 100%);
	}

	.product-con .footer .bnt.fictitious .bnts {
		width: 100%;
	}

	.product-con .footer .bnt.fictitious .buy {
		border-radius: 50rpx;
	}

	.product-con .store-info {
		margin-top: 20rpx;
		background-color: #fff;
	}

	.product-con .store-info .title {
		padding: 0 30rpx;
		font-size: 28rpx;
		color: #282828;
		height: 80rpx;
		line-height: 80rpx;
		border-bottom: 1px solid #f5f5f5;
	}

	.product-con .store-info .info {
		padding: 0 30rpx;
		height: 126rpx;
	}

	.product-con .store-info .info .picTxt {
		width: 615rpx;
	}

	.product-con .store-info .info .picTxt .pictrue {
		width: 76rpx;
		height: 76rpx;
	}

	.product-con .store-info .info .picTxt .pictrue image {
		width: 100%;
		height: 100%;
		border-radius: 6rpx;
	}

	.product-con .store-info .info .picTxt .text {
		width: 522rpx;
	}

	.product-con .store-info .info .picTxt .text .name {
		font-size: 30rpx;
		color: #282828;
	}

	.product-con .store-info .info .picTxt .text .address {
		font-size: 24rpx;
		color: #666;
		margin-top: 3rpx;
	}

	.product-con .store-info .info .picTxt .text .address .iconfont {
		color: #707070;
		font-size: 18rpx;
		margin-left: 10rpx;
	}

	.product-con .store-info .info .picTxt .text .address .addressTxt {
		max-width: 480rpx;
	}

	.product-con .store-info .info .iconfont {
		font-size: 40rpx;
	}

	.product-con .superior {
		// background-color: #fff;
		padding-bottom: 10rpx;
		margin: 20rpx 20rpx 0 20rpx;
		border-radius: 12rpx;
	}

	.product-con .superior .title {
		height: 98rpx;
	}

	.product-con .superior .title .lingw {
		width: 23rpx;
		height: 23rpx;
		background-color: var(--view-minorColorT);
		transform: rotate(45deg);
	}

	.product-con .superior .title .lingn {
		width: 11rpx;
		height: 11rpx;
		background-color: var(--view-theme);
	}

	.product-con .superior .title image {
		width: 30rpx;
		height: 30rpx;
	}

	.product-con .superior .title .titleTxt {
		margin: 0 20rpx;
		font-size: 30rpx;
		color: var(--view-theme);
		// background-image: linear-gradient(to right, #f57a37 0%, #f21b07 100%);
		// -webkit-background-clip: text;
		// -webkit-text-fill-color: transparent;
	}

	.product-con .superior .slider-banner {
		width: 676rpx;
		margin: 0 auto;
		position: relative;
	}

	.product-con .superior .slider-banner swiper {
		height: 100%;
		width: 100%;
	}

	.product-con .superior .slider-banner swiper-item {
		height: 100%;
	}

	.product-con .superior .slider-banner .list {
		width: 100%;
	}

	.product-con .superior .slider-banner .list .item {
		width: 198rpx;
		margin: 0 38rpx 30rpx 0;
		font-size: 26rpx;
	}

	.product-con .superior .slider-banner .list .item:nth-of-type(3n) {
		margin-right: 0;
	}

	.product-con .superior .slider-banner .list .item .pictrue {
		position: relative;
		width: 100%;
		height: 198rpx;
		border-radius: 20rpx;
	}

	.product-con .superior .slider-banner .list .item .pictrue image {
		width: 100%;
		height: 100%;
		border-radius: 20rpx;
	}
	
	.product-con .superior .slider-banner .list .item .pictrue .activityFrame{
		border-radius: 20rpx;
	}

	.product-con .superior .slider-banner .list .item .name {
		color: #282828;
		margin-top: 12rpx;
	}

	.product-con .superior .slider-banner .swiper-pagination-bullet {
		background-color: #999;
	}

	.product-con .superior .slider-banner .swiper-pagination-bullet-active {
		background-color: #e93323;
	}

	button {
		padding: 0;
		margin: 0;
		line-height: normal;
		background-color: #fff;
	}

	button::after {
		border: 0;
	}

	action-sheet-item {
		padding: 0;
		height: 240rpx;
		align-items: center;
		display: flex;
	}

	.contact {
		font-size: 16px;
		width: 50%;
		background-color: #fff;
		padding: 8rpx 0;
		border-radius: 0;
		margin: 0;
		line-height: 2;
	}

	.contact::after {
		border: none;
	}

	.action-sheet {
		font-size: 17px;
		line-height: 1.8;
		width: 50%;
		position: absolute;
		top: 0;
		right: 0;
		padding: 25rpx 0;
	}

	.canvas {
		z-index: 300;
		width: 750px;
		height: 1300px;
	}

	.poster-pop {
		width: 460rpx;
		height: 800rpx;
		position: fixed;
		left: 50%;
		transform: translateX(-50%);
		z-index: 399;
		top: 50%;
		margin-top: -559rpx;
	}

	.poster-pop image {
		width: 100%;
		height: 100%;
		display: block;
		border-radius: 18rpx;
	}

	.poster-pop .close {
		width: 46rpx;
		height: 75rpx;
		position: fixed;
		right: 0;
		top: -73rpx;
		display: block;
	}

	.poster-pop .save-poster {
		background-color: #df2d0a;
		font-size: ：22rpx;
		color: #fff;
		text-align: center;
		height: 76rpx;
		line-height: 76rpx;
		width: 100%;
	}

	.poster-pop .keep {
		color: #fff;
		text-align: center;
		font-size: 25rpx;
		margin-top: 10rpx;
	}

	.mask {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.6);
		z-index: 9;
	}

	.pro-wrapper .iconn {
		background-image: url('');
		width: 100rpx;
		height: 100rpx;
		background-repeat: no-repeat;
		background-size: 100% 100%;
		margin: 0 auto;
	}

	.pro-wrapper .iconn.iconn1 {
		background-image: url('');
	}

	.navbar .header {
		height: 96rpx;
		/* #ifdef MP */
		font-size: 28rpx;
		/* #endif */
		/* #ifndef MP */
		font-size: 30rpx;
		/* #endif */
		color: #050505;
		background-color: #fff;
		/* #ifdef APP-PLUS */
		width: 100%;
		/* #endif */
	}

	.home {
		/* #ifdef H5 */
		top: 20rpx !important;
		/* #endif */
	}

	.navbar .header .item {
		position: relative;
		/* #ifdef MP */
		margin: 0 20rpx;
		/* #endif */
		/* #ifndef MP */
		margin: 0 25rpx;
		/* #endif */
	}

	.navbar .header .item.on:before {
		position: absolute;
		width: 56rpx;
		height: 5rpx;
		background-repeat: no-repeat;
		content: '';
		// background-image: linear-gradient(to right, #ff3366 0%, #ff6533 100%);
		background-color: var(--view-theme);
		bottom: -10rpx;
		left: 50%;
		margin-left: -28rpx;
	}

	.navbar {
		position: fixed;
		background-color: #fff;
		top: 0;
		left: 0;
		z-index: 99;
		width: 100%;
	}

	.navbar .navbarH {
		position: relative;
	}

	.navbar .navbarH .navbarCon {
		position: absolute;
		bottom: 0;
		height: 100rpx;
		width: 100%;
		/* #ifndef APP-PLUS || H5 || MP-ALIPAY */
		// justify-content: flex-end;
		padding-left: 126rpx;
		/* #endif */
	}

	.home {
		color: #333;
		position: fixed;
		/* #ifdef MP */
		width: 150rpx;
		left: 15rpx;
		height: 58rpx;
		/* #endif */
		/* #ifndef MP */
		height: 56rpx;
		width: 56rpx;
		left: 33rpx;
		/* #endif */
		z-index: 99;
		background: rgba(255, 255, 255, 0.3);
		border: 0.5px solid rgba(0, 0, 0, 0.1);
		border-radius: 40rpx;
		font-size: 33rpx;

		&.right {
			right: 33rpx;
			left: unset
		}

		&.on {
			background: unset;
			color: #333;
		}

		&.homeIndex {
			/* #ifdef MP */
			width: 98rpx;
			/* #endif */
			/* #ifndef MP */
			border-color: rgba(255, 255, 255, 0);
			/* #endif */
		}
	}

	.home .iconfont {
		width: 66rpx;
		text-align: center;
		font-size: 30rpx;
		color: #000;
	}

	.home .line {
		width: 1rpx;
		height: 34rpx;
		background: rgba(0, 0, 0, 0.1);
	}

	.home .icon-xiangzuo {
		font-size: 28rpx;
	}

	.share-box {
		z-index: 1000;
		position: fixed;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.product-con .conter {
		display: block;
		width: 100%;
		padding-bottom: 24rpx;
		background-color: #fff;
		border-bottom-left-radius: 16rpx;
		border-bottom-right-radius: 16rpx;
		
		.s-item {
			padding: 0 20rpx;
			margin-top: 48rpx;
			
			
			.flow-title {
				// display: flex;
				position: relative;
				margin-bottom: 24rpx;
				
				.above-pic {
					position: absolute;
					left: 0;
					top: 0;
					width: 88rpx !important;
					height: 33rpx;
				}
				
				.title-text {
					position: relative;
					padding-left: 28rpx;
					font-size: 32rpx;
					font-weight: bold;
					color: #1F1F1F;
					line-height: 33rpx;
					// background: linear-gradient(90deg, #E8F9F7 0%, rgba(57,204,194,0) 100%);
				}
			}
			
			.content {
				background-color: #F5F7FA;
				font-size: 24rpx;
				font-weight: 400;
				color: #666666;
				line-height: 44rpx;
				padding: 20rpx;
				border-radius: 8rpx;
				
				&~.content {
					margin-top: 16rpx;
				}
			}
		}
		
	}

	.product-con .conter img {
		display: block;
	}

	.svipCon {
		height: 64rpx;
		padding: 0 26rpx 0 60rpx;
		margin: 8rpx 20rpx 0;
		background: url('') center/100% 100% no-repeat;
		font-size: 24rpx;
		color: #ae5a2a;
	}

	.svipCon .iconfont {
		margin-left: 12rpx;
		font-size: 24rpx;
	}

	.product-con .wrapper .share .money image {
		width: 56rpx;
		height: 20rpx;
	}
	
	.recommendlist {
		padding: 0 10rpx;
		display: flex;
		flex-flow: row wrap;
		width: 100%;
		
		.img-wrapper {
		    position: relative;
		    width: 100%;
		    height: 0;
		    padding-top: 100%;
			
			.img {
			    position: absolute;
			    left: 0;
			    top: 0;
			    width: 100%;
			    height: 100%;
			}
		}
	}
	
	// .waterfalls {
	// 	flex: 0 0 50%;
	// 	width: 50%;
	// 	padding: 10rpx;
	// 	box-sizing: border-box;
	// 	color: #222;
		
	// 	.item-wrapper {
	// 		background-color: #fff;
	// 		border-radius: 16rpx;
	// 		padding: 10rpx;
	// 	}
		
	// 	.name {
	// 		font-size: 28rpx;
	// 		line-height: 44rpx;
	// 		word-break: break-all !important;
			
	// 		.re-label {
	// 			padding: 2rpx 10rpx;
	// 			margin-right: 8rpx;
	// 			background: linear-gradient(180deg, #FF9D5C 0%, #FF7847 100%);
	// 			border-radius: 40rpx;
	// 			color: #FFFFFF;
	// 			font-size: 24rpx;
	// 		}
	// 	}
	
	// 	.label {
	// 		font-size: 20rpx;
	// 		color: #FF9147;
	// 		border-radius: 4rpx;
	// 		background: rgba(255,145,71,0.08);
	// 		padding: 0 6rpx;
	// 		display: inline-block;
	// 		margin-top: 10rpx;
	// 		margin-right: 10rpx;
	// 	}
	
	// 	.money {
	// 		font-size: 26rpx;
	// 		color: #FF1F2E;
	// 		// font-weight: 700;
	
	// 		.num {
	// 			font-size: 34rpx;
	// 		}
	
	// 		.nums {
	// 			font-size: 28rpx;
	// 		}
	// 	}
	
	// 	.vip {
	// 		font-size: 22rpx;
	// 		color: #aaa;
	// 		margin-top: 6rpx;
	
	// 		.vip-money {
	// 			font-size: 24rpx;
	// 			color: #282828;
	// 			font-weight: bold;
	
	// 			image {
	// 				width: 46rpx;
	// 				height: 21rpx;
	// 				margin-left: 4rpx;
	// 			}
	// 		}
	// 	}
	// }


.price-color {
	color: #FF1F2E;
}

.coupon-wrapper {
	// padding: 0 20rpx;
	// border-top: 1rpx solid #f5f5f5;
	height: 80rpx;
	font-size: 26rpx;
	color: #82848f
}

.coupon-wrapper .info{
	width: 526rpx;
	margin-left: 36rpx;
	height: 46rpx;
	line-height: 46rpx;
}

.coupon-wrapper .info .labels{
	background-color: var(--view-minorColorT);
	font-size: 20rpx;
	color: var(--view-theme);
	padding: 6rpx 10rpx;
	border-radius: 26rpx;
	margin-right: 10rpx;
}

.coupon-wrapper .activityInfo{
	margin-left: 20rpx;
}

.coupon-wrapper .hide {
	width: 540rpx;
	height: 80rpx;
	line-height: 80rpx
}

.coupon-wrapper .coupon-content {
	margin: 19rpx 0 19rpx 15rpx;
}

.coupon-wrapper .coupon-img {
	width: 48rpx;
	height: 40rpx;
}

.coupon-wrapper .activity {
	height: 40rpx;
	padding: 0 20rpx;
	background: rgba(255,51,65,0.08);
	border: 1rpx solid rgba(255,51,65,0.24);
	color: #FF3341;
	font-size: 24rpx;
	line-height: 40rpx;
	position: relative;
	// margin: 19rpx 0 19rpx 15rpx
}

.coupon-wrapper .activity:before {
	content: ' ';
	position: absolute;
	width: 7rpx;
	height: 10rpx;
	border-radius: 0 7rpx 7rpx 0;
	border: 1rpx solid rgba(255,51,65,0.24);
	background-color: #fff;
	bottom: 50%;
	left: -3rpx;
	margin-bottom: -6rpx;
	border-left-color: #fff
}

// .coupon-wrapper .activity:after {
// 	content: ' ';
// 	position: absolute;
// 	width: 7rpx;
// 	height: 10rpx;
// 	border-radius: 7rpx 0 0 7rpx;
// 	border: 1rpx solid rgba(255,51,65,0.24);
// 	background-color: #fff;
// 	right: -3rpx;
// 	bottom: 50%;
// 	margin-bottom: -6rpx;
// 	border-right-color: #fff
// }

.spu-desc {
	margin: 20rpx 20rpx 0 20rpx;
	color: #999999;
	font-size: 28rpx;
}

.bottom-label {
	margin: 20rpx 20rpx 0 20rpx;
	
	// .rent-label {
	// 	padding: 0 4rpx;
	// 	background: rgba(41,126,255,0.08);
	// 	border-radius: 4rpx;
	// 	color: #297EFF;
	// 	font-size: 28rpx;
	// }
	
	.rent {
		margin-left: 10rpx;
		font-size: 28rpx;
		
		.discount-price {
			
		}
	}
	
	.label-item {
		padding: 0 4rpx;
		background: rgba(110,184,179,0.12);
		color: #6EB8B3;
		border-radius: 4rpx;
		margin-left: 8rpx;
		font-size: 28rpx;
	}
}

.labelNew{
	// width: 104rpx;
	// height: 64rpx;
	font-size: 20rpx;
	color: #fff;
	font-weight: 500;
	// border:1px solid var(--view-theme);
	border-radius: 20rpx;
	padding: 4rpx 8rpx;
	margin-right: 10rpx;
	display: inline-block;
	vertical-align: 5rpx;
	background: linear-gradient(180deg, #FF9D5C 0%, #FF7847 100%);
}

.spu-label {
	margin: 20rpx 20rpx 0 20rpx;
	.label-item {
		// width: 104rpx;
		// height: 64rpx;
		font-size: 24rpx;
		color: #FF9147;
		font-weight: 500;
		// border:1px solid var(--view-theme);
		border-radius: 4rpx;
		padding: 4rpx;
		margin-right: 10rpx;
		display: inline-block;
		vertical-align: 5rpx;
		background: rgba(255,145,71,0.08);
	}
}

.anxinzu-wrapper {
	margin: 20rpx 20rpx 0 20rpx;
	background-color: #fff;
	border-radius: 16rpx;
	padding-bottom: 30rpx;
	position: relative;
	
	.anxinzu-img {
		width: 100%;
		height: 160rpx;
	}
	
	.list {
		width: 100%;
		display: flex;
		flex-direction: row;
		.item {
			width: 25%;
			flex: 25%;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			
			.img {
				width: 88rpx;
				height: 88rpx;
				background: #D8D8D8;
				border: 1px solid #979797;
			    border-radius: 44rpx;
				
				image {
					width: 100%;
					height: 100%;
				}
			}
			
			.content {
				margin-top: 16rpx;
				font-size: 24rpx;
			}
		}
	}
	
	.anxinzu-text {
		position: absolute;
		left: 24rpx;
		top: 100rpx;
		font-size: 24rpx;
		color: #999999;
	}
	
	.label-icon {
		position: absolute;
		width: 128rpx;
		height: 148rpx;
		right: 20rpx;
		top: -8rpx;
	}
}

.zhima-credit {
	margin: 0 20rpx;
	padding-top: 26rpx;
	
	.content {
		padding: 12rpx 24rpx;
		background: #f5f7fa;
		border-radius: 24rpx;
		font-size: 24rpx;
		display: flex;
		flex-direction: row;
		align-items: center;
		
		.zhima-icon {
			width: 22rpx;
			height: 24rpx;
			margin-right: 8rpx;
		}
		
		.left-title {
			color: #297EFF;
			margin-right: 4rpx;
		}
	}
}

.title-wrapper {
	display: flex;
	flex-direction: row;
	background-color: #fff;
	height: 96rpx;
	border-top-left-radius: 16rpx;
	border-top-right-radius: 16rpx;
	
	.detail-title {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 96rpx;
		position: relative;
		
		.content {
			height: 96rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			border-bottom: 4rpx solid #fff;
		}
		
		// .h-line {
		// 	position: absolute;
		// 	bottom: 0;
		// 	width: 80rpx;
		// 	height: 4rpx;
		// 	background: #fff;
		// }
		
		.on {
			border-bottom: 4rpx solid #39CCC2;
		}
	}
	
	.on {
		color: #1F1F1F;
		font-weight: bold;
	}
}

.spu-detail-select {
	display: flex;
	flex-direction: row;
	background-color: #fff;
	padding: 20rpx 0;
	.item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
		.select-title {
			height: 60rpx;
			padding: 0 20rpx;
			background: #F5F7FA;
			border-radius: 35rpx;
			color: #39CCC2;
			border: 1px solid #F5F7FA;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			color: #333;
		}
		
		.on {
			background: #fff;
			color: #39CCC2;
			border: 1px solid #39CCC2;
		}
	}
}

.bottom-img {
	width: 48rpx;
	height: 48rpx;
}

.tip-list {
	background-color: #fff;
	padding: 24rpx;
	width: 710rpx;
	margin: 0 auto;
	margin-top: 20rpx;
	border-radius: 16rpx;
	overflow: hidden;
	
	.tip-title {
		font-weight: bold;
		margin-top: 24rpx;
	}
	
	.tip-txt {
		color: #999;
		font-size: 24rpx;
		margin-top: 24rpx;
		display: flex;
		line-height: 40rpx;
		
		.point {
			width: 8rpx;
			height: 8rpx;
			background-color: #F53831;
			border-radius: 50%;
			display: inline-block;
			margin-right: 8rpx;
			margin-bottom: 4rpx;
		}
	}
	
}

.spu-info {
	position: relative;
	margin-top: -30rpx !important;
	box-shadow: 0px 0px 8px 0px rgba(0,0,0,0.04);
}

.top-header {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 8;
	border-radius: 0;
	background-color: #fff;
	overflow: hidden;
}

.bottom-footer {
	padding: 0 30rpx;
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 120rpx;
	box-sizing: border-box;
	background-color: #fff;
	z-index: 277;
	border-top: 1px solid #f0f0f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: calc(120rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
	height: calc(120rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
	padding-bottom: calc(0rpx + constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
	padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
	
	.bottom-item {
		display: flex;
		flex-direction: column;
		align-content: center;
		justify-content: center;
		
		.p_center {
			margin-top: 8rpx;
			font-size: 24rpx;
		}
	}
	
	.bnt {
		width: 500rpx;
		
		.bnts {
			height: 80rpx;
			background: linear-gradient(90deg, #71EBDA 0%, #39CCC2 100%);
			border-radius: 40rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			font-size: 32rpx;
			border: none !important;
		}
	}
}

.rent-wrapper {
	margin-top: 24rpx;
	padding: 0 20rpx;
	display: flex;
	align-items: center;
	justify-content: space-between;
	
	.left {
		display: flex;
		align-items: center;
		.rent-label {
			background: rgba(41,126,255,0.08);
			color: #297EFF;
			border-radius: 4rpx;
			font-size: 28rpx;
			display: flex;
			align-items: center;
			padding: 0 4rpx;
			
			.zhima-icon {
				width: 24rpx;
				height: 24rpx;
				margin-right: 8rpx;
			}
		}
	}
	
	.right {
		display: flex;
		align-items: center;
		.right-lable {
			background: rgba(110,184,179,0.12);
			border-radius: 4rpx;
			padding: 0 4rpx;
			margin-left: 8rpx;
			color: #6EB8B3;
		}
	}
	
	
	
	.spu-rent {
		color: #999999;
		margin-left: 8rpx;
		.price {
			text-decoration: line-through;
		}
	}
}


.flow-path {
		background-image: url('https://wap.yqjy8.vip/uploads/attach/2023/05/20230520/a91e10d0623bb8caba5013988172fe93.png');
		background-size: 100%;
		background-color: #FFFFFF;
		background-repeat: no-repeat;
		padding-top: 168rpx;
		padding-bottom: 24rpx;
		border-bottom-left-radius: 16rpx;
		border-bottom-right-radius: 16rpx;
		
		
		.path-block {
			margin: 0 24rpx;
			padding: 32rpx 24rpx 0 24rpx;
			border-radius: 16rpx 16rpx 0rpx 0rpx;
			background-color: #fff;
			
			.flow-title {
				position: relative;
				// display: flex;
				margin-bottom: 24rpx;
				
				.above-pic {
					position: absolute;
					left: 0;
					top: 0;
					width: 88rpx;
					height: 33rpx;
				}
				
				.title-text {
					position: relative;
					padding-left: 28rpx;
					font-size: 32rpx;
					font-weight: bold;
					color: #1F1F1F;
					line-height: 33rpx;
					// background: linear-gradient(90deg, #E8F9F7 0%, rgba(57,204,194,0) 100%);
				}
			}
				
			.flow-chart {
				display: flex;
				justify-content: space-between;
				
				.item{
					width: 110rpx;
					text-align: center;
					
					
					.pic{
						width: 80rpx;
						height: 80rpx;
						margin: 0 auto;
						
						image {
							width: 100%;
							height: 100%;
						}
					}
					
					.text {
						margin-top: 8rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: #666666;
						line-height: 32rpx;
					}
				}
				
				.dots {
					display: flex;
					justify-content: space-between;
					width: 40rpx;
					margin-top: 40rpx;
					
					.dot {
						width: 4rpx;
						height: 4rpx;
						background: #D8D8D8;
						border-radius: 50%;
					}
				}
				
			}
			
			.section-box {
				margin-top: 24rpx;
				margin-bottom: 48rpx;
				padding: 24rpx;
				background: #F5F7FA;
				border-radius: 8rpx;
				
				.count-header {
					display: flex;
					align-items: center;
					
					.count-pic {
						width: 26rpx;
						height: 28rpx;
						margin-right: 8rpx;
					}
					
					.count-text {
						font-size: 28rpx;
						font-weight: bold;
						color: #1F1F1F;
						line-height: 28rpx;
					}
					
				}
				
				.content {
					padding: 16rpx 0 24rpx 0;
				}
				
				.date-pic {
					width: 556rpx;
					height: 258rpx;
				}
			}
		}
		
		
		.box2 {
			padding: 0 24rpx;
			background-color: #fff;
			
			.flow-title {
				// display: flex;
				position: relative;
				margin-bottom: 24rpx;
				
				.above-pic {
					position: absolute;
					left: 0;
					top: 0;
					width: 88rpx;
					height: 33rpx;
				}
				
				.title-text {
					position: relative;
					padding-left: 28rpx;
					font-size: 32rpx;
					font-weight: bold;
					color: #1F1F1F;
					line-height: 33rpx;
					// background: linear-gradient(90deg, #E8F9F7 0%, rgba(57,204,194,0) 100%);
				}
			}
				
			.flow-chart {
				display: flex;
				justify-content: space-between;
				
				.item{
					width: 110rpx;
					text-align: center;
					
					
					.pic{
						width: 80rpx;
						height: 80rpx;
						margin: 0 auto;
						
						image {
							width: 100%;
							height: 100%;
						}
					}
					
					.text {
						margin-top: 8rpx;
						font-size: 24rpx;
						font-weight: 400;
						color: #666666;
						line-height: 32rpx;
					}
				}
				
				.dots {
					display: flex;
					justify-content: space-between;
					width: 40rpx;
					margin-top: 40rpx;
					
					.dot {
						width: 4rpx;
						height: 4rpx;
						background: #D8D8D8;
						border-radius: 50%;
					}
				}
				
			}
			
			.section-box {
				margin-top: 24rpx;
				margin-bottom: 48rpx;
				padding: 24rpx;
				background: #F5F7FA;
				border-radius: 8rpx;
				
				.count-header {
					display: flex;
					align-items: center;
					
					.count-pic {
						width: 26rpx;
						height: 28rpx;
						margin-right: 8rpx;
					}
					
					.count-text {
						font-size: 28rpx;
						font-weight: bold;
						color: #1F1F1F;
						line-height: 28rpx;
					}
					
				}
				
				.content {
					padding: 16rpx 0 24rpx 0;
				}
				
				.date-pic {
					width: 556rpx;
					height: 258rpx;
				}
			}
		}
		
		
		
		.s-item {
			margin-top: 48rpx;
			
			.content {
				font-size: 24rpx;
				font-weight: 400;
				color: #666666;
				line-height: 44rpx;
				
				&~.content {
					margin-top: 16rpx;
				}
			}
		}
		
	}


	.problem {
		width: 100%;
		position: relative;
		.top-problem {
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 320rpx;
		}
		
		.problem-list {
			position: relative;
			padding-top: 160rpx;
			.problem-list-wrapper {
				background-color: #fff;
				border-radius: 16rpx;
				padding: 24rpx;
				.problem-item {
					padding: 24rpx;
					background: #F5F7FA;
					border-radius: 16rpx;
					margin-bottom: 24rpx;
				}
				
				.problem-title {
					display: flex;
					flex-direction: row;
					align-items: center;
					
					.ic-problem-left {
						width: 44rpx;
						height: 44rpx;
					}
					
					.problem-subtitle {
						margin-left: 20rpx;
						font-size: 28rpx;
						color: #1F1F1F;
						font-weight: bold;
					}
				}
				
				.problem-content {
					margin-top: 16rpx;
					color: #999;
					font-size: 24rpx;
					line-height: 40rpx;
				}
			}
		}
	
		.expand-wrapper {
			display: flex;
			align-items: center;
			justify-content: center;
			color: #999;
			font-size: 24rpx;
			
			.ic-expand {
				margin-left: 4rpx;
				width: 24rpx;
				height: 24rpx;
			}
		}
	}
	
	.spu-price-wrapper {
		position: relative;
		
		.top-price {
			position: absolute;
			top: 44rpx;
			left: 24rpx;
			color: #fff;
			font-size: 24rpx;
			font-weight: bold;
			
			.num {
				font-size: 48rpx;
			}
		}
	}
	
	.spu-price-bg {
		width: 100%;
		height: 176rpx;
	}
	
	.spu-desc-info {
		position: relative;
		margin-top: -40rpx;
		background-color: #fff;
		border-radius: 16rpx;
	}
	
	.title-selsct-wrapper {
		padding: 0 20rpx;
	}
	
	.recommend-title {
		height: 88rpx;
		color: #1F1F1F;
		font-size: 32rpx;
		font-weight: bold;
	}
	
	.head-box {
		display: flex;
		justify-content: center;
		align-items: center;
		
		image {
			width: 32rpx;
			height: 32rpx;
		}
		
		.main-title {
			margin: 0 8rpx;
			font-size: 32rpx;
			font-weight: bold;
			color: #1F1F1F;
			line-height: 32rpx;
		}
	}
	
	.rec-list {
		padding: 0 20rpx;
		
		.waterfalls {
			padding: 10rpx 16rpx 16rpx 16rpx;
			color: #222;
			
			
			.tit-tag {
				padding: 0rpx 7rpx;
				background: linear-gradient(180deg, #FF9D5C 0%, #FF7847 100%);
				border-radius: 20rpx;
				font-size: 24rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #FFFFFF;
				margin-right: 10rpx;
			}
			
			
			// .waterfalls-tit {
			// 	.tit-tag {
			// 		padding: 0rpx 7rpx;
			// 		background: linear-gradient(180deg, #FF9D5C 0%, #FF7847 100%);
			// 		border-radius: 20rpx;
			// 		font-size: 24rpx;
			// 		font-family: PingFangSC-Medium, PingFang SC;
			// 		font-weight: 500;
			// 		color: #FFFFFF;
			// 		margin-right: 10rpx;
			// 	}
			// }
			.info-lable-box {
				margin-top: 16rpx;
				.lable-li {
					width: 112rpx;
					height: 40rpx;
					border-radius: 4rpx;
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					line-height: 24rpx;
					text-align: center;
					line-height: 40rpx;
				}
				.li-cor0 {
					background: rgba(255,145,71,0.08);
					color: #FF9147;
					margin-right: 10rpx;
				}
				.li-cor1 {
					background: rgba(255,96,71,0.08);
					color: #FF3D1F;
				}
				flex-wrap: wrap;
			}
			.price-box {
				margin-top: 16rpx;
				.info-price {
					.price-icon {
						font-size: 28rpx;
						position: relative;
						top: 5rpx;
					}
					.price-unit {
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						line-height: 24rpx;
					}
					color: #FF1F2E;
					margin-top: 10rpx;
					align-items: flex-end;
					font-size: 40rpx;
					font-family: D-DIN-Bold, D-DIN;
					font-weight: bold;
					line-height: 30rpx;
					margin-right: 15rpx;
				}
			}
			.serve-box {
				margin-top: 20rpx;
				.serve-li {
					width: 104rpx;
					height: 32rpx;
					background: rgba(110,184,179,0.12);
					border-radius: 4rpx;
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #6EB8B3;
					line-height: 32rpx;
					text-align: center;
					&:first-child {
						margin-right: 10rpx;
					}
				}
			}
			.name {
				font-size: 28rpx;
			}
		
			.label {
				font-size: 20rpx;
				color: var(--view-theme);
				border-radius: 4rpx;
				border: 1px solid var(--view-theme);
				padding: 0 6rpx;
				display: inline-block;
				margin-top: 10rpx;
				margin-right: 10rpx;
			}
		
			.money {
				font-size: 26rpx;
				font-weight: 700;
		
				.num {
					font-size: 34rpx;
				}
		
				.nums {
					font-size: 28rpx;
				}
			}
		
			.vip {
				font-size: 22rpx;
				color: #aaa;
				margin-top: 6rpx;
		
				.vip-money {
					font-size: 24rpx;
					color: #282828;
					font-weight: bold;
		
					image {
						width: 46rpx;
						height: 21rpx;
						margin-left: 4rpx;
					}
				}
			}
		}
	}
</style>
